Project

General

Profile

Actions

Bug #27028

closed

Linkhandler add a "="-Sign to all existing and new links

Added by Alexander Grein almost 13 years ago. Updated over 5 years ago.

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

100%

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

Description

If you want to add a new link or edit an existing one, always a "="-Sign is adding, so link will be corrupt.
This happens when using linkhandler in header and media but NOT in RTE.
Problem comes with latest updates to TYPO3 4.4.8 and 4.5.3


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #25350: JS: TBE_EDITOR.rawurlencode produces wrong encoded strings in conjunction with UTF-8ClosedSteffen Kamper2011-03-17

Actions
Related to TYPO3 Core - Bug #27270: external url adds = before the linksClosed2011-06-07

Actions
Related to TYPO3 Core - Bug #83341: Rename or delete Files or Folders with Umlauts not working in filelistClosed2017-12-15

Actions
Has duplicate TYPO3 Core - Bug #27304: TBE_EDITOR.rawurlencode erroneously adds "=" in wizardsClosed2011-06-08

Actions
Actions #1

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change I1f5df4abe014e61ac463d5c12b9c240a6f2b7ccc has been pushed to the review server.
It is available at http://review.typo3.org/2509

Actions #2

Updated by Marco Huber almost 13 years ago

Copy from http://forge.typo3.org/issues/25350:

I'm sorry, but I think the solution with Ext.urlEncode doesn't work.
From the ExtJs-manual: Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2".
In jsfunc.tbe_editor.js the code
Ext.urlEncode({'' : output});
returns
=mystring if output=mystring.
Inserted in
<a onclick="...P[fieldChangeFuncHash]=afadea6d036792882b4ff362f4393c30244fa4cf'+'&P[currentValue]='+TBE_EDITOR.rawurlencode(document.editform['data[tt_content]7[header_link]_hr'].value,200)+'&P[currentSelectedValues]='+TBE_EDITOR.curSelected('data[tt_content]7[header_link]_hr_list')..." href="#"><img title="Link" alt="Link" src="sysext/t3skin/icons/gfx/link_popup.gif"></a> (created in t3lib_tceforms::renderWizard) the finally called URL for the popup is
http://.../typo3/browse_links.php?mode=wizard...&P[currentValue]==mystring&P[currentSelectedValues]=.
You see the == next to &P[currentValue]? The second = is part of the value and not necesarry. ;-)
I think, we have to possible solutions:
1. change all places in the TYPO3 core where TBE_EDITOR.rawurlencode is used to give Ext.urlEncode the correct object or
2. use encodeURIComponent(output) instead of Ext.urlEncode({'' : output}). encodeURIComponent is supported since IE5.5 and Netscape 6, so I don't think this would be a problem.

I would prever the second solution because with this solution we only have to change one little line. In my opinion using Ext.urlEncode is a breaking change.

What do you think?

Actions #4

Updated by Mr. Hudson almost 13 years ago

Patch set 2 of change I1f5df4abe014e61ac463d5c12b9c240a6f2b7ccc has been pushed to the review server.
It is available at http://review.typo3.org/2509

Actions #5

Updated by Marco Huber almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Markus Klein over 6 years ago

  • Related to Bug #83341: Rename or delete Files or Folders with Umlauts not working in filelist added
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF