diff options
Diffstat (limited to 'lib/filestorage')
-rw-r--r-- | lib/filestorage/local.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 8db0ffead4e..58c34e972de 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -140,6 +140,7 @@ class OC_Filestorage_Local extends OC_Filestorage{ } else if (OC_Helper::canExecute("file")) { // it looks like we have a 'file' command, // lets see it it does have mime support + $fspath=str_replace("'","\'",$fspath); $fp = popen("file -i -b '{$this->datadir}$fspath' 2>/dev/null", "r"); $reply = fgets($fp); pclose($fp); |