Sanitize filenames (in a unified manner) before using in Content-Disposition header
This commit is contained in:
@@ -271,9 +271,7 @@ if ($asfile) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$filename = PMA_expandUserString($filename_template);
|
$filename = PMA_expandUserString($filename_template);
|
||||||
|
$filename = PMA_sanitize_filename($filename);
|
||||||
// convert filename to iso-8859-1, it is safer
|
|
||||||
$filename = PMA_convert_string($charset, 'iso-8859-1', $filename);
|
|
||||||
|
|
||||||
// Grab basic dump extension and mime type
|
// Grab basic dump extension and mime type
|
||||||
// Check if the user already added extension; get the substring where the extension would be if it was included
|
// Check if the user already added extension; get the substring where the extension would be if it was included
|
||||||
|
Reference in New Issue
Block a user