From ef867e6bd1277a7bdf5709ab5626f2aa9e1d7db7 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 10 Sep 2011 13:06:59 +0200 Subject: [PATCH] Trim identifiers (bug #3405309) --- adminer/create.inc.php | 5 +++-- adminer/database.inc.php | 11 ++++++----- adminer/include/editing.inc.php | 2 +- adminer/procedure.inc.php | 2 +- adminer/scheme.inc.php | 9 +++++---- adminer/sequence.inc.php | 7 ++++--- adminer/type.inc.php | 2 +- adminer/view.inc.php | 5 +++-- changes.txt | 3 ++- 9 files changed, 26 insertions(+), 20 deletions(-) diff --git a/adminer/create.inc.php b/adminer/create.inc.php index e46c419a..b81033cf 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -78,9 +78,10 @@ if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"] && !$_POST["up"] cookie("adminer_engine", $_POST["Engine"]); $message = lang('Table has been created.'); } - queries_redirect(ME . "table=" . urlencode($_POST["name"]), $message, alter_table( + $name = trim($_POST["name"]); + queries_redirect(ME . "table=" . urlencode($name), $message, alter_table( $TABLE, - $_POST["name"], + $name, $fields, $foreign, $_POST["Comment"], diff --git a/adminer/database.inc.php b/adminer/database.inc.php index 38b24c86..58697c04 100644 --- a/adminer/database.inc.php +++ b/adminer/database.inc.php @@ -1,16 +1,17 @@