mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #600, avoid html in web uploaded filenames
This commit is contained in:
@@ -216,7 +216,7 @@ $http_headers[] = 'Content-Type: '.$ctype;
|
||||
|
||||
if (isset($_GET['download']))
|
||||
{
|
||||
$http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";';
|
||||
$http_headers[] = 'Content-Disposition: attachment; filename="'.htmlspecialchars_decode($element_info['file']).'";';
|
||||
$http_headers[] = 'Content-Transfer-Encoding: binary';
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user