Skip to content

Commit

Permalink
Merge pull request #694 from bjo3rnf/encodedecode
Browse files Browse the repository at this point in the history
[TASK] Avoid double url encoding
  • Loading branch information
cedricziel committed Oct 16, 2014
2 parents 484ee5e + 28c0948 commit b286d77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/Media/Image/AbstractImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public function preprocessImage() {
}
$this->imageInfo[3] = GeneralUtility::png_to_gif_by_imagemagick($this->imageInfo[3]);
$GLOBALS['TSFE']->imagesOnPage[] = $this->imageInfo[3];
$this->mediaSource = $GLOBALS['TSFE']->absRefPrefix . GeneralUtility::rawUrlEncodeFP($this->imageInfo[3]);
$publicUrl = rawurldecode($this->imageInfo[3]);
$this->mediaSource = $GLOBALS['TSFE']->absRefPrefix . GeneralUtility::rawUrlEncodeFP($publicUrl);
if ('BE' === TYPO3_MODE) {
$this->resetFrontendEnvironment();
}
Expand Down

0 comments on commit b286d77

Please sign in to comment.