Skip to content

Commit

Permalink
Merge pull request #13284 from udan11/fix_13269
Browse files Browse the repository at this point in the history
Small refactoring in preparation to CSP.
  • Loading branch information
nijel committed Jun 1, 2017
2 parents 073a26b + 19a7151 commit a3293b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -14,6 +14,7 @@ phpMyAdmin - ChangeLog
- issue #13167 Themes now have to contain metadata in theme.json
- issue #6363 phpMyAdmin no longer requires eval() in PHP
- issue #12386 The mbstring dependency is now optional
- issue #13269 Small refactoring in preparation to CSP

4.7.2 (not yet released)

Expand Down
2 changes: 1 addition & 1 deletion templates/header_location.twig
Expand Up @@ -8,7 +8,7 @@
<meta http-equiv="Refresh" content="0;url={{ uri }}" />
<script type="text/javascript">
//<![CDATA[
setTimeout("window.location = decodeURI('{{ Sanitize_escapeJsString(uri) }}')", 2000);
setTimeout(function() { window.location = decodeURI('{{ Sanitize_escapeJsString(uri) }}'); }, 2000);
//]]>
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion test/libraries/core/PMA_headerLocation_test.php
Expand Up @@ -117,7 +117,7 @@ public function testSendHeaderLocationIisLongUri()
. "\n <meta http-equiv=\"Cache-Control\" content=\"no-cache\" />"
. "\n <meta http-equiv=\"Refresh\" content=\"0;url=" . $testUri_html . "\" />"
. "\n <script type=\"text/javascript\">\n //<![CDATA[
setTimeout(\"window.location = decodeURI('" . $testUri_js . "')\", 2000);
setTimeout(function() { window.location = decodeURI('" . $testUri_js . "'); }, 2000);
//]]>\n </script>\n</head>
<body>\n<script type=\"text/javascript\">\n //<![CDATA[
document.write('<p><a href=\"" . $testUri_html . "\">" . __('Go') . "</a></p>');
Expand Down

0 comments on commit a3293b1

Please sign in to comment.