Replace deprecated unescape function by decodeURI.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
e1696fe7d6
commit
126eab2ffe
@ -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>
|
||||
|
||||
@ -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>');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user