fix viewing images that have a ' in the filename
This commit is contained in:
parent
2aa50dc5d9
commit
d4fa1ddaa1
|
@ -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…
Reference in New Issue