Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sanitize filenames before using in Content-Disposition header

  • Loading branch information...
commit ae20845e36e0e019715842c71eed9e4a9ff99223 1 parent e11e55c
Marc Delisle lem9 authored helmo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  transformation_wrapper.php
2  transformation_wrapper.php
View
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.