Project

General

Profile

Actions

Bug #14191

closed

Incorrect handling of %-sign in FORM.params

Added by Alexey Gafiulov about 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

Also available in: Atom PDF