Project

General

Profile

Actions

Bug #50929

closed

Don't call rawurlencode() twice on curUrl

Added by Jan Spisiak almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2013-08-08
Due date:
% Done:

0%

Estimated time:
1.00 h
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Yes
Sprint Focus:

Description

In ElementBrowser.php:

$this->setTitle = $this->curUrlArray['title'] != '-' ? rawurlencode($this->curUrlArray['title']) : '';
...
$JScode = '
    ...
    var add_title="' . ($this->setTitle ? '&curUrl[title]=' . rawurlencode($this->setTitle) : '') . '";
    ...
';

This is for all curUrl attributes. In the end this means that javascript variables are encoded twice and the prefilled form is also encoded even if it shouldn't be.
I've included patch, but I am not sure if it satisfies all the rules.


Files

patch1.diff (1.75 KB) patch1.diff Jan Spisiak, 2013-08-08 16:27

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #41413: link title got urlencoded in link-wizardClosed2012-09-27

Actions
Actions

Also available in: Atom PDF