]> source.dussan.org Git - nextcloud-server.git/commitdiff
merge master into webdav-injection
authorRobin Appelman <icewind@owncloud.com>
Tue, 15 Apr 2014 18:05:43 +0000 (20:05 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 15 Apr 2014 18:05:43 +0000 (20:05 +0200)
1  2 
lib/private/connector/sabre/file.php

index cbecd90b7d6e73295b0da41408bd736f81066196,750d646a8f588e5dbfa813881b1f7fef0498ebdc..a9de41adf4d6ab9b085509545c1d0cbf7a5176f1
@@@ -191,7 -204,14 +191,9 @@@ class OC_Connector_Sabre_File extends O
         * @return mixed
         */
        public function getContentType() {
-               return $this->info->getMimetype();
 -              if (isset($this->fileinfo_cache['mimetype'])) {
 -                      $mimeType = $this->fileinfo_cache['mimetype'];
 -              } else {
 -                      $mimeType = \OC\Files\Filesystem::getMimeType($this->path);
 -              }
++              $mimeType = $this->info->getMimetype();
+               return \OC_Helper::getSecureMimeType($mimeType);
 -
        }
  
        /**