From f418ac91a623c5e89c94b0edf086979a80e320ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 13 Apr 2002 08:18:41 +0000 Subject: [PATCH] Add comments to clarify a bit changes --- main.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.php3 b/main.php3 index cb0481a82..69971ed2f 100755 --- a/main.php3 +++ b/main.php3 @@ -192,8 +192,8 @@ if ($server > 0) { $local_query = 'SELECT DISTINCT Db FROM mysql.db WHERE Create_priv = \'Y\' AND User = \'' . PMA_sqlAddslashes($mysql_cur_user) . '\''; $rs_usr = mysql_query($local_query, $dbh); // Debug: or PMA_mysqlDie('', $local_query, FALSE); if ($rs_usr) { - $re0 = '(^|(\\\\\\\\)+|[^\])'; - $re1 = '(^|[^\])(\\\)+'; + $re0 = '(^|(\\\\\\\\)+|[^\])'; // non-escaped wildcards + $re1 = '(^|[^\])(\\\)+'; // escaped wildcards while ($row = mysql_fetch_array($rs_usr)) { if (ereg($re0 . '(%|_)', $row['Db']) || (!mysql_select_db(ereg_replace($re1 . '(%|_)', '\\1\\3', $row['Db']), $userlink) && @mysql_errno() != 1044)) {