From: Jakub Vrana Date: Wed, 26 Feb 2025 19:01:47 +0000 (+0100) Subject: Remove empty string X-Git-Tag: v5.0.0~114 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=de7bb79132e244bca1ca6d7b5d07ff6446fee22b;p=adminer.git Remove empty string --- 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(