Release preparation. New language activation and global UTF-8 charset.

This commit is contained in:
Yuriy Pikhtarev 2017-06-12 20:19:28 +03:00
commit 5942e57b53
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
5 changed files with 187 additions and 15 deletions

2
dl.php
View file

@ -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\"");