Project

General

Profile

Actions

Bug #27304

closed

TBE_EDITOR.rawurlencode erroneously adds "=" in wizards

Added by Stephan Großberndt almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2011-06-08
Due date:
% Done:

0%

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

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'
   ),
  ),
 )
),


Related issues 2 (0 open2 closed)

Is duplicate of TYPO3 Core - Bug #27270: external url adds = before the linksClosed2011-06-07

Actions
Is duplicate of TYPO3 Core - Bug #27028: Linkhandler add a "="-Sign to all existing and new linksClosed2011-05-25

Actions
Actions #1

Updated by Stephan Großberndt almost 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

Actions #2

Updated by Marco Huber almost 13 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF