From ba35e11bae90e68c11d01a94ebb03860d605ee8b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 23 Feb 2025 08:41:33 +0100 Subject: [PATCH] Ignore error in dropping old constraint --- adminer/check.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/check.inc.php b/adminer/check.inc.php index 0d8b06db..997a09c5 100644 --- a/adminer/check.inc.php +++ b/adminer/check.inc.php @@ -5,7 +5,7 @@ $row = $_POST; if ($row && !$error) { $result = ($name == "" || queries("ALTER TABLE " . table($TABLE) . " DROP CONSTRAINT " . idf_escape($name))); - if (!$row["drop"] && $result) { + if (!$row["drop"]) { $result = queries("ALTER TABLE " . table($TABLE) . " ADD" . ($row["name"] != "" ? " CONSTRAINT " . idf_escape($row["name"]) . "" : "") . " CHECK ($row[clause])"); //! SQL injection } queries_redirect( -- 2.39.5