From de7bb79132e244bca1ca6d7b5d07ff6446fee22b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 26 Feb 2025 20:01:47 +0100 Subject: [PATCH] Remove empty string --- 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 e1f6961e..a7df1ea4 100644 --- a/adminer/check.inc.php +++ b/adminer/check.inc.php @@ -9,7 +9,7 @@ if ($row && !$error) { } else { $result = ($name == "" || queries("ALTER TABLE " . table($TABLE) . " DROP CONSTRAINT " . idf_escape($name))); if (!$row["drop"]) { - $result = queries("ALTER TABLE " . table($TABLE) . " ADD" . ($row["name"] != "" ? " CONSTRAINT " . idf_escape($row["name"]) . "" : "") . " CHECK ($row[clause])"); //! SQL injection + $result = queries("ALTER TABLE " . table($TABLE) . " ADD" . ($row["name"] != "" ? " CONSTRAINT " . idf_escape($row["name"]) : "") . " CHECK ($row[clause])"); //! SQL injection } } queries_redirect(