fix viewing images that have a ' in the filename

This commit is contained in:
Robin Appelman 2010-09-28 22:14:01 +02:00
parent 2aa50dc5d9
commit d4fa1ddaa1
1 changed files with 1 additions and 0 deletions

View File

@ -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);