Bug #16522
closedtx_cms_showpic (click to enlarge) not working
0%
Description
the popup window should show an image but is giving an error instead:
Parameter Error: Wrong parameters sent.
this results from lines 134-168 in ./typo3/sysext/cms/tslib/showpic.php
to resolve this issue typo3 has to "rawurldecode" the parameters. i had to replace lines 135-145 with the following code to achieve the desired behaviour:
$this->file = rawurldecode(t3lib_div::_GP('file'));
$this->width = rawurldecode(t3lib_div::_GP('width'));
$this->height = rawurldecode(t3lib_div::_GP('height'));
$this->sample = t3lib_div::_GP('sample');
$this->alternativeTempPath = rawurldecode(t3lib_div::_GP('alternativeTempPath'));
$this->effects = rawurldecode(t3lib_div::_GP('effects'));
$this->frame = t3lib_div::_GP('frame');
$this->bodyTag = rawurldecode(t3lib_div::_GP('bodyTag'));
$this->title = rawurldecode(t3lib_div::_GP('title'));
$this->wrap = rawurldecode(t3lib_div::_GP('wrap'));
$this->md5 = t3lib_div::_GP('md5');
please commit this change for typo3 4.0.2
kind regards,
raoul bhatia
(issue imported from #M4143)