summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
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);
}
}