Project

General

Profile

Actions

Bug #16522

closed

tx_cms_showpic (click to enlarge) not working

Added by r bhatia almost 18 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2006-09-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Actions

Also available in: Atom PDF