diff options
author | thilinaa <thilinaabeyrathna@gmail.com> | 2012-08-19 21:00:10 +0400 |
---|---|---|
committer | thilinaa <thilinaabeyrathna@gmail.com> | 2012-08-19 21:00:10 +0400 |
commit | a51f387594a9f7e5df6548d13c88e83b0d2dc767 (patch) | |
tree | 821ebc0c9bd330f2a445d9855b93421a7d410521 /server_privileges.php | |
parent | bdcae38f19d92d8660bc79715ea55e1f54e10700 (diff) |
fixed bug[3542599]- After edit global privileges not update
Diffstat (limited to 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/server_privileges.php b/server_privileges.php index 5724b609ea..b0df0cc435 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -130,12 +130,13 @@ if (isset($dbname)) { $db_and_table = '*.*'; } -$dbname_is_wildcard = false; // check if given $dbname is a wildcard or not if (isset($dbname)) { //if (preg_match('/\\\\(?:_|%)/i', $dbname)) { if (preg_match('/(?<!\\\\)(?:_|%)/i', $dbname)) { $dbname_is_wildcard = true; + } else { + $dbname_is_wildcard = false; } } @@ -386,16 +387,10 @@ if ($GLOBALS['is_ajax_request'] && ! isset($_REQUEST['edit_user_dialog']) && ! isset($_REQUEST['db_specific']) ) { - $isPass = false; - if (isset($password)) { - $isPass = true; - } - $extra_data = PMA_getExtraDataForAjaxBehavior( - $isPass, $link_export, + (isset ($password) ? $password : ''), $link_export, (isset($sql_query) ? $sql_query : ''), - $link_edit, $dbname_is_wildcard, - $hostname, $username + $link_edit, $hostname, $username ); if ($message instanceof PMA_Message) { @@ -478,7 +473,8 @@ if (empty($_REQUEST['adduser']) ); $response->addHTML( PMA_getHtmlForDisplayUserProperties( - $dbname_is_wildcard, $url_dbname, $random_n, + ((isset ($dbname_is_wildcard)) ? $dbname_is_wildcard : ''), + $url_dbname, $random_n, $username, $hostname, $link_edit, $link_revoke, (isset($dbename) ? $dbname : ''), (isset($tablename) ? $tablename : '') |