mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
use TorrentFile from Rhilip\Bencode
This commit is contained in:
@@ -6615,4 +6615,9 @@ function hide_text($text) {
|
||||
return '<span class="hidden-text">' . $text . '</span>';
|
||||
}
|
||||
|
||||
function make_content_disposition(string $filename, string $disposition = 'attachment'): string {
|
||||
$filenameFallback = str_replace('%', '', Str::ascii($filename));
|
||||
return \Symfony\Component\HttpFoundation\HeaderUtils::makeDisposition($disposition, $filename, $filenameFallback);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user