Permalink
Browse files

cleaner output filenames

  • Loading branch information...
1 parent eac16b1 commit 68a00a1868a2ec44ac9e3c003e4c48cc52e00cbd @splitbrain committed Jan 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 action.php
View
@@ -135,9 +135,9 @@ function convert(&$event, $param) {
http_conditionalRequest(filemtime($cache->cache));
if($this->getConf('output') == 'file'){
- header('Content-Disposition: attachment; filename="'.rawurlencode($title).'.pdf";');
+ header('Content-Disposition: attachment; filename="'.rawurlencode(cleanID($title)).'.pdf";');
}else{
- header('Content-Disposition: inline; filename="'.rawurlencode($title).'.pdf";');
+ header('Content-Disposition: inline; filename="'.rawurlencode(cleanID($title)).'.pdf";');
}
if (http_sendfile($cache->cache)) exit;

0 comments on commit 68a00a1

Please sign in to comment.