mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Remove empty string
This commit is contained in:
@@ -9,7 +9,7 @@ if ($row && !$error) {
|
|||||||
} else {
|
} else {
|
||||||
$result = ($name == "" || queries("ALTER TABLE " . table($TABLE) . " DROP CONSTRAINT " . idf_escape($name)));
|
$result = ($name == "" || queries("ALTER TABLE " . table($TABLE) . " DROP CONSTRAINT " . idf_escape($name)));
|
||||||
if (!$row["drop"]) {
|
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(
|
queries_redirect(
|
||||||
|
Reference in New Issue
Block a user