according to rfc 2816, the location http header requires an absolute URI

This commit is contained in:
Loïc Chapeaux
2001-08-20 19:08:29 +00:00
parent 0ec91a1692
commit c3d62b3988
9 changed files with 37 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ $tables = mysql_list_tables($db);
$num_tables = @mysql_numrows($tables);
// Not a valid db name -> back to the welcome page
if (mysql_error() != '') {
header('Location: main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
header('Location: ' . $cfgPmaAbsoluteUri . 'main.php3?lang=' . $lang . '&server=' . $server . '&reload=true');
exit();
}