Project

General

Profile

Actions

Bug #14191

closed

Incorrect handling of %-sign in FORM.params

Added by Alexey Gafiulov almost 20 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2004-06-02
Due date:
% Done:

0%

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

Description

In case of % sign in extra parameters to form elements it incorrectly handles by sprintf as additional placeholder. This gives warning in class.tslib_content.php on line 1639 (may vary for different field types) and stop processing of this field.

example:
tt_content.search.30.params = style="width: 100%;"

will fires bug on search pages.

Solution:
Fix class.tslib_content.php by inserting
str_replace("%","%%",$addParams) into according sprintf calls (some field types handlers do not use sprintf, so one str_replace before all calls will not work).

(issue imported from #M132)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #16074: params.textarea setting causes form element to disappearClosedErnesto Baschny2006-04-20

Actions
Actions #1

Updated by Robert Lemke almost 20 years ago

Yes, I can confirm that for the latest CVS - version:

Warning: sprintf(): Too few arguments in /var/lib/typo3/cvs/TYPO3_HEAD/TYPO3core/typo3/sysext/cms/tslib/class.tslib_content.php on line 1639

Warning: sprintf(): Too few arguments in /var/lib/typo3/cvs/TYPO3_HEAD/TYPO3core/typo3/sysext/cms/tslib/class.tslib_content.php on line 1689

Warning: sprintf(): Too few arguments in /var/lib/typo3/cvs/TYPO3_HEAD/TYPO3core/typo3/sysext/cms/tslib/class.tslib_content.php on line 1743

edited on: 09.06.04 21:55

edited on: 09.06.04 21:55

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

Hi Gafs,
Can you provide a patch for this? That would be of great help.
Thanks,
Sebastian

Actions #3

Updated by Rupert Germann almost 18 years ago

fixed in cvs

Actions

Also available in: Atom PDF