beredim
Forum Replies Created
-
My blog is running on IIS 7.5 on a private (non-Internet accessible) server
If this is true for the .doc files too (not Internet accessible) then of course they won’t display, because Google Docs Viewer cannot access them.
Ok so I think I have managed to patch this and posting the code below.
I would appreciate it if the author of the plugin could check to see if this creates any problems.
I edited the file gviewer.php located at the root folder of the plugin (/wp-content/plugins/google-document-embedder/gviewer.php).
At line 161 i added the following code:
$uefile = rawurlencode($uefile);So this is the final code around line 161:
} else { $uefile = $file; } $uefile = rawurlencode($uefile); // check for proxy if ($gdeoptions['disable_proxy'] == "no") {So now the plugin works for Internet Explorer with Greek filenames.
This is what guided me to the patch: https://docs.google.com/viewer/
url : The URL of the document to view. This should be URL-encoded.
[…]
For example, if you wanted to view the PDF at the URL http://research.google.com/archive/bigtable-osdi06.pdf , you would use the URL: http://docs.google.com/viewer?url=http%3A%2F%2Fresearch.google.com%2Farchive%2Fbigtable-osdi06.pdfThe src url that was being produced for the iframe wasn’t url encoded. It appears Chrome and Firefox were smart enough to bypass this and decode it correctly, but not IE.