From b7a1280c17f36e4618b18f250c968ff7852b66f3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 15 Mar 2016 10:05:34 +0000 Subject: [PATCH] Fix can not open any attachment caused by wrong path --- api/src/Header/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Header/Content.php b/api/src/Header/Content.php index 917cf690bf..22e4fa8b58 100644 --- a/api/src/Header/Content.php +++ b/api/src/Header/Content.php @@ -41,7 +41,7 @@ class Content public static function safe(&$content, $path, &$mime='', &$length=0, $nocache=true, $force_download=true, $no_content_type=false) { // change old/aliased mime-types to new one, eg. image/pdf to application/pdf - $mime = Api\Api\MimeMagic::fix_mime_type($mime); + $mime = Api\MimeMagic::fix_mime_type($mime); // mitigate risk of serving javascript or css via webdav from our domain, // which will get around same origin policy and CSP