Replace deprecated unescape function by decodeURI.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte 2015-07-20 23:39:49 +02:00
parent e1696fe7d6
commit 126eab2ffe
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<meta http-equiv="Refresh" content="0;url=<?php echo htmlspecialchars($uri) ?>">
<script type="text/javascript">
//<![CDATA[
setTimeout("window.location = unescape('<?php echo PMA_escapeJsString($uri) ?>')", 2000);
setTimeout("window.location = decodeURI('<?php echo PMA_escapeJsString($uri) ?>')", 2000);
//]]>
</script>
</head>

View File

@ -263,7 +263,7 @@ class PMA_HeaderLocation_Test extends PHPUnit_Framework_TestCase
. "<meta http-equiv=\"Cache-Control\" content=\"no-cache\">"
. "<meta http-equiv=\"Refresh\" content=\"0;url=" . $testUri_html . "\">"
. "<script type=\"text/javascript\">//<![CDATA[
setTimeout(\"window.location = unescape('" . $testUri_js . "')\", 2000);
setTimeout(\"window.location = decodeURI('" . $testUri_js . "')\", 2000);
//]]></script></head>
<body><script type=\"text/javascript\">//<![CDATA[
document.write('<p><a href=\"" . $testUri_html . "\">" . __('Go') . "</a></p>');