Bug #27304
closedTBE_EDITOR.rawurlencode erroneously adds "=" in wizards
0%
Description
If you use a wizard for a colorpicker or a link in TYPO3 4.4.7 and 4.5.3 (haven't tested with older versions) and click on the wizard button, the current value of the field is retrieved in the window.open() function using
TBE_EDITOR.rawurlencode(document.editform['data[pages][1][tx_testextension_color]_hr'].value,200) TBE_EDITOR.rawurlencode(document.editform['data[pages][1][tx_testextension_internet]_hr'].value,200)
This returns a wrong value, because TBE_EDITOR.rawurlencode always adds a "=" in front:
- If the value is empty, "=" will be returned, resulting in a default value "http://=" in the link wizard.
- If a value is set in the color picker, e.g. "#333666", the result of TBE_EDITOR.rawurlencode will be "=#333666" in the colorpicker wizard.
TCA for the fields:
'tx_testextension_color' => Array ( 'config' => Array ( 'type' => 'input', 'size' => '30', 'max' => '7', 'eval' => 'trim', 'wizards' => array( 'colorpick' => array( 'type' => 'colorbox', 'title' => 'Color picker', 'script' => 'wizard_colorpicker.php', 'dim' => '20x20', 'tableStyle' => 'border: solid 1px black; margin-left: 20px;', 'JSopenParams' => 'height=550,width=365,status=0,menubar=0,scrollbars=1', 'exampleImg' => 'gfx/wizard_colorpickerex.jpg', ) ) ) ), 'tx_testextension_internet' => Array ( 'config' => Array ( 'type' => 'input', 'size' => '30', 'wizards' => Array( '_PADDING' => 2, 'link' => Array( 'type' => 'popup', 'title' => 'Link', 'icon' => 'link_popup.gif', 'script' => 'browse_links.php?mode=wizard', 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1' ), ), ) ),
Updated by Stephan Großberndt over 13 years ago
It's version TYPO3 4.4.8 and 4.5.3, not 4.4.7.
As it seems, I did not use the correct search terms, as there are two related bug reports http://forge.typo3.org/issues/27270 and http://forge.typo3.org/issues/27028
Updated by Marco Huber over 13 years ago
- Status changed from New to Resolved
Applied in changeset fa2787c5100488325aefd679a2f5d8674e391847.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed