From b67aee6cb03cf74b0139746b2fc2ee59ec471a0f Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 22 Sep 2013 22:23:54 +0530 Subject: [PATCH] Double quotes are better for SQLs since single quotes inside the SQL need not be escaped. --- libraries/db_info.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/db_info.inc.php b/libraries/db_info.inc.php index 2070bc5b97..5760995713 100644 --- a/libraries/db_info.inc.php +++ b/libraries/db_info.inc.php @@ -97,9 +97,9 @@ if (true === $cfg['SkipLockedTables']) { while ($tmp = $GLOBALS['dbi']->fetchRow($db_info_result)) { if (! isset($sot_cache[$tmp[0]])) { $sts_result = $GLOBALS['dbi']->query( - 'SHOW TABLE STATUS FROM ' . PMA_Util::backquote($db) - . ' LIKE \'' . PMA_Util::sqlAddSlashes($tmp[0], true) - . '\';' + "SHOW TABLE STATUS FROM " . PMA_Util::backquote($db) + . " LIKE '" . PMA_Util::sqlAddSlashes($tmp[0], true) + . "';" ); $sts_tmp = $GLOBALS['dbi']->fetchAssoc($sts_result); $GLOBALS['dbi']->freeResult($sts_result);