Bug #942296 - Safari can't handle location.replace() redirects

correctly
This commit is contained in:
Garvin Hicking
2004-04-28 12:13:36 +00:00
parent 40726ea672
commit 8cc4bd7fa4
6 changed files with 30 additions and 9 deletions

View File

@@ -1102,7 +1102,7 @@ if ($is_minimum_common == FALSE) {
echo 'document.write (\'<p><a href="' . $uri . '">' . $GLOBALS['strGo'] . '</a></p>\');' . "\n";
echo '</script></body></html>' . "\n";
} else {
} else {
header('Location: ' . $uri);
}
}
@@ -1312,7 +1312,7 @@ if ($is_minimum_common == FALSE) {
<!--
if (typeof(window.parent) != 'undefined'
&& typeof(window.parent.frames['nav']) != 'undefined') {
window.parent.frames['nav'].location.replace('<?php echo $reload_url; ?>&hash=' + <?php echo (($cfg['QueryFrame'] && $cfg['QueryFrameJS']) ? 'window.parent.frames[\'queryframe\'].document.hashform.hash.value' : "'" . md5($cfg['PmaAbsoluteUri']) . "'"); ?>);
window.parent.frames['nav'].goTo('<?php echo $reload_url; ?>&hash=' + <?php echo (($cfg['QueryFrame'] && $cfg['QueryFrameJS']) ? 'window.parent.frames[\'queryframe\'].document.hashform.hash.value' : "'" . md5($cfg['PmaAbsoluteUri']) . "'"); ?>);
}
//-->
</script>