1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Correct redirect after change in where field

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1359 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-04-02 12:29:56 +00:00
parent 35ec64c61d
commit 640d0ec08d
4 changed files with 18 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ foreach ($fields as $name => $field) {
if ($_POST && !$error && !isset($_GET["select"])) {
$location = $_POST["referer"];
if ($_POST["insert"]) { // continue edit or insert
$location = $_SERVER["REQUEST_URI"]; //! doesn't work with change in &where field
$location = ($update ? ME . "&edit=" . urlencode($TABLE) . unique_idf($_POST["fields"], indexes($TABLE)) : $_SERVER["REQUEST_URI"]); //! doesn't work with functions
} elseif (!ereg('^.+&select=.+$', $location)) {
$location = ME . "select=" . urlencode($TABLE);
$i = 0; // append &set converted to &where