Issue Bug Closed

#16522tx_cms_showpic (click to enlarge) not working

r bhatia 09/02/06, 18:36 updated 05/22/14, 14:35

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.