fix viewing images that have a ' in the filename

remotes/origin/stable
Robin Appelman 14 years ago
parent 2aa50dc5d9
commit d4fa1ddaa1
  1. 1
      files/open_file.php

@ -30,6 +30,7 @@ if(strstr($file,'..') or strstr($dir,'..')){
die();
}
$filename=$dir.'/'.$file;
$filename=stripslashes($filename);
$ftype=OC_FILESYSTEM::getMimeType($filename);
ob_end_clean();
header('Content-Type: '.$ftype);

Loading…
Cancel
Save