From 72ccfbfed0b3f3cb47f988ac48bded1cbcd9ecff Mon Sep 17 00:00:00 2001 From: Dennis Geldmacher Date: Mon, 22 Jun 2015 11:45:03 +0200 Subject: [PATCH] [BUGFIX] Wrong path to original image in some cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For example this path: fileadmin/LOCATIONS/H/haus_84_caf%C3%A9_bar/listimage.jpg breaks the functionality beacuse the file is located here: fileadmin/LOCATIONS/H/Haus_84_café_bar/listimage.jpg md5_file($org_path) in this->deleteFileCache() is not working without urldecode in this case. What do you think? --- Classes/RealUrlImage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/RealUrlImage.php b/Classes/RealUrlImage.php index 0a88ea2..a0ecc6d 100644 --- a/Classes/RealUrlImage.php +++ b/Classes/RealUrlImage.php @@ -249,7 +249,7 @@ protected function init($conf, $image, $file, $cObj) { } // org_fileName - $this->org_fileName = $image[3]; + $this->org_fileName = urldecode($image[3]); } /** @@ -673,4 +673,4 @@ public function stdWrapDummy($textBase, $fl_conf) { return $objectContentRender->stdWrap($textBase, $this->fl_conf); } -} \ No newline at end of file +}