From: Jakub Vrana Date: Fri, 20 Dec 2013 22:10:26 +0000 (-0800) Subject: Allow spaces between privileges (fixes gh-67) X-Git-Tag: v4.0.0~24 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=da21494a52092b37f27c59a5dfec8f02eefa53da;p=adminer.git Allow spaces between privileges (fixes gh-67) --- diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index 11c3314f..6a124d48 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -463,7 +463,7 @@ if (!defined("DRIVER")) { "auto_increment" => ($row["Extra"] == "auto_increment"), "on_update" => (preg_match('~^on update (.+)~i', $row["Extra"], $match) ? $match[1] : ""), //! available since MySQL 5.1.23 "collation" => $row["Collation"], - "privileges" => array_flip(explode(",", $row["Privileges"])), + "privileges" => array_flip(preg_split('~, *~', $row["Privileges"])), "comment" => $row["Comment"], "primary" => ($row["Key"] == "PRI"), );