Skip to content

Commit

Permalink
Sanitize filenames (in a unified manner) before using in Content-Disp…
Browse files Browse the repository at this point in the history
…osition header
  • Loading branch information
madhuracj committed Aug 24, 2011
1 parent 4e89311 commit 786328c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions export.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ function PMA_exportOutputHandler($line)
}
}
$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
Expand Down

0 comments on commit 786328c

Please sign in to comment.