Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Sanitize filenames before using in Content-Disposition header

  • Loading branch information...
commit ae20845e36e0e019715842c71eed9e4a9ff99223 1 parent e11e55c
Marc Delisle authored August 08, 2011 helmo committed August 18, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  transformation_wrapper.php
2  transformation_wrapper.php
@@ -70,7 +70,7 @@
70 70
 header($content_type);
71 71
 
72 72
 if (isset($cn) && !empty($cn)) {
73  
-    header('Content-Disposition: attachment; filename=' . $cn);
  73
+    header('Content-Disposition: attachment; filename=' . PMA_sanitize_filename($cn));
74 74
 }
75 75
 
76 76
 if (!isset($resize)) {

0 notes on commit ae20845

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