Details
-
Type:
Patch
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.3
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Gdata
-
Labels:None
-
Tags:
Description
Below is a patch to allow a file uploaded to Google Docs via the Gdata library to have a slug that is different from its filename.
— library/Zend/Gdata/Docs.php (revision 16177)
+++ library/Zend/Gdata/Docs.php (working copy)
@@ -221,8 +221,7 @@
// 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);
}
code pasted in description doesn't contain newlines for some reason ...