Skip to content

Commit

Permalink
cleaner output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jan 16, 2012
1 parent eac16b1 commit 68a00a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.php
Expand Up @@ -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;
Expand Down

0 comments on commit 68a00a1

Please sign in to comment.