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

@@ -17,7 +17,7 @@ if (isset($store_bkm)) {
$fields['label'] = stripslashes($fields['label']);
}
add_bookmarks($fields, $cfgBookmark);
header('Location: ' . $goto);
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
}
@@ -50,7 +50,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) {
if (file_exists('./' . $goto)) {
include('./' . ereg_replace('\.\.*', '.', $goto));
} else {
header('Location: ' . $goto);
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
}
exit();
} // end if
@@ -181,7 +181,7 @@ else {
} // end if file_exist
else {
$message = $zero_rows;
header('Location: ' . $goto);
header('Location: ' . $cfgPmaAbsoluteUri . $goto);
} // end else
exit();
} // end no rows returned