summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-29 22:40:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-29 22:40:41 +0000
commit1df3cfffefefc93ed2d29041d148938d08bb9d4e (patch)
tree3f2488086535e8ce70f656f32113dd6eef4fd545 /includes/stream_wrappers.inc
parent139f4375615216dfd077caba957508ff60778f45 (diff)
downloadbrdo-1df3cfffefefc93ed2d29041d148938d08bb9d4e.tar.gz
brdo-1df3cfffefefc93ed2d29041d148938d08bb9d4e.tar.bz2
- Patch #284899 by c960657, voxpelli, mattconnolly: fixed Drupal url problem with clean urls.
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r--includes/stream_wrappers.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc
index b4edb0933..2940b1e66 100644
--- a/includes/stream_wrappers.inc
+++ b/includes/stream_wrappers.inc
@@ -639,7 +639,7 @@ class DrupalPublicStreamWrapper extends DrupalLocalStreamWrapper {
*/
function getExternalUrl() {
$path = str_replace('\\', '/', file_uri_target($this->uri));
- return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . $path;
+ return $GLOBALS['base_url'] . '/' . self::getDirectoryPath() . '/' . drupal_encode_path($path);
}
}