From 786328c50b1387c31f02e698693d67ad7b11330a Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 24 Aug 2011 22:44:38 +0530 Subject: [PATCH] Sanitize filenames (in a unified manner) before using in Content-Disposition header --- export.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/export.php b/export.php index 100269f5aa..fb8805a4e1 100644 --- a/export.php +++ b/export.php @@ -271,9 +271,7 @@ if ($asfile) { } } $filename = PMA_expandUserString($filename_template); - - // convert filename to iso-8859-1, it is safer - $filename = PMA_convert_string($charset, 'iso-8859-1', $filename); + $filename = PMA_sanitize_filename($filename); // 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 -- 2.11.4.GIT