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

Tested-by: default avatarTYPO3com <>
Reviewed-by: Daniel Huf's avatarDaniel Huf <>
Tested-by: Daniel Huf's avatarDaniel Huf <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
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