Commit 67ac6ea9 authored by Markus Klein's avatar Markus Klein Committed by Andreas Fernandez
Browse files

[BUGFIX] Make JS url encoding utf aware

Replace the deprecated function JS `escape` with `encodeURIComponent`.

Releases: master, 8.7
Resolves: #83341
Change-Id: Ia9fdd44c7b06f63ab867f692e07193ab23f535a3
Reviewed-on: https://review.typo3.org/55144

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Huf's avatarDaniel Huf <huf.daniel@gmail.com>
Tested-by: Daniel Huf's avatarDaniel Huf <huf.daniel@gmail.com>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent 94058cd1
......@@ -36,7 +36,7 @@ function jump(url, modName, mainModName, pageId) {
* Function similar to PHPs rawurlencode();
*/
function rawurlencode(str) {
var output = escape(str);
var output = encodeURIComponent(str);
output = str_replace("*","%2A", output);
output = str_replace("+","%2B", output);
output = str_replace("/","%2F", output);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment