From 44340623484eb34ba4161e0b372dad5ad65504d3 Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Mon, 18 Feb 2019 11:15:33 +0100 Subject: [PATCH] BUGFIX: Add rawurlencode processing while building resource proxy urls --- .../ProxyAwareWritableFileSystemStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/ResourceManagement/ProxyAwareWritableFileSystemStorage.php b/Classes/ResourceManagement/ProxyAwareWritableFileSystemStorage.php index 102c899..54652da 100644 --- a/Classes/ResourceManagement/ProxyAwareWritableFileSystemStorage.php +++ b/Classes/ResourceManagement/ProxyAwareWritableFileSystemStorage.php @@ -67,9 +67,9 @@ public function getStreamByResource(PersistentResource $resource) $subdivideHashPathSegment = $resourceProxyConfiguration['subdivideHashPathSegment'] ?? false; if ($subdivideHashPathSegment) { $sha1Hash = $resource->getSha1(); - $uri = $resourceProxyConfiguration['baseUri'] .'/_Resources/Persistent/' . $sha1Hash[0] . '/' . $sha1Hash[1] . '/' . $sha1Hash[2] . '/' . $sha1Hash[3] . '/' . $sha1Hash . '/' . $resource->getSha1() . '/' . $resource->getFilename();; + $uri = $resourceProxyConfiguration['baseUri'] .'/_Resources/Persistent/' . $sha1Hash[0] . '/' . $sha1Hash[1] . '/' . $sha1Hash[2] . '/' . $sha1Hash[3] . '/' . $sha1Hash . '/' . $resource->getSha1() . '/' . rawurlencode($resource->getFilename()); } else { - $uri = $resourceProxyConfiguration['baseUri'] .'/_Resources/Persistent/' . $resource->getSha1() . '/' . $resource->getFilename(); + $uri = $resourceProxyConfiguration['baseUri'] .'/_Resources/Persistent/' . $resource->getSha1() . '/' . rawurlencode($resource->getFilename()); } $response = $browser->request($uri);