Skip to content
Browse files

Sanitize filenames before using in Content-Disposition header

  • Loading branch information...
1 parent e11e55c commit ae20845e36e0e019715842c71eed9e4a9ff99223 @lem9 lem9 committed with helmo Aug 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 transformation_wrapper.php
View
2 transformation_wrapper.php
@@ -70,7 +70,7 @@
header($content_type);
if (isset($cn) && !empty($cn)) {
- header('Content-Disposition: attachment; filename=' . $cn);
+ header('Content-Disposition: attachment; filename=' . PMA_sanitize_filename($cn));
}
if (!isset($resize)) {

0 comments on commit ae20845

Please sign in to comment.
Something went wrong with that request. Please try again.