Просмотр исходного кода

ZF-7056: Allow using a slug in Zend_Gdata_Docs file uploads that has a
different file extension than the actual file.

Patch by: mromaine (Matthew Romaine)

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16279 44c647ce-9c0f-0410-b52a-842ac1e357ba

tjohns 16 лет назад
Родитель
Сommit
36f09f3860
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      library/Zend/Gdata/Docs.php

+ 1 - 2
library/Zend/Gdata/Docs.php

@@ -221,8 +221,7 @@ class Zend_Gdata_Docs extends Zend_Gdata
 
         // Set the mime type of the data.
         if ($mimeType === null) {
-          $slugHeader =  $fs->getSlug();
-          $filenameParts = explode('.', $slugHeader);
+          $filenameParts = explode('.', $fileLocation);
           $fileExtension = end($filenameParts);
           $mimeType = self::lookupMimeType($fileExtension);
         }