Bug #14191
closedIncorrect handling of %-sign in FORM.params
0%
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)
Updated by Robert Lemke over 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
Updated by Sebastian Kurfuerst almost 19 years ago
Hi Gafs,
Can you provide a patch for this? That would be of great help.
Thanks,
Sebastian