mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Release preparation. New language activation and global UTF-8 charset.
This commit is contained in:
parent
a2b533bb3e
commit
5942e57b53
5 changed files with 187 additions and 15 deletions
2
dl.php
2
dl.php
|
@ -68,7 +68,7 @@ function send_file_to_browser($attachment, $upload_dir)
|
|||
header('Pragma: public');
|
||||
$real_filename = clean_filename(basename($attachment['real_filename']));
|
||||
$mimetype = $attachment['mimetype'] . ';';
|
||||
$charset = "charset={$bb_cfg['lang'][$userdata['user_lang']]['encoding']};";
|
||||
$charset = "charset={$bb_cfg['charset']};";
|
||||
|
||||
// Send out the Headers
|
||||
header("Content-Type: $mimetype $charset name=\"$real_filename\"");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue