From d4fa1ddaa152723eb100bb7c732d624d8305ba2c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 28 Sep 2010 22:14:01 +0200 Subject: [PATCH] fix viewing images that have a ' in the filename --- files/open_file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/open_file.php b/files/open_file.php index e1b82dcd37b..b91f72aaf31 100644 --- a/files/open_file.php +++ b/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);