Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-12-07 09:43:51 +01:00
commit 799e8b1697
3 changed files with 4 additions and 6 deletions

View File

@ -49,6 +49,7 @@ phpMyAdmin - ChangeLog
- issue #12757 Fixed creating new user with older MariaDB
- issue #12784 Remove ctype installation suggestion
- issue #12780 Format button replaces all text with blank spaces
- issue #12786 Fixed database searching
4.6.5.2 (2016-12-05)
- issue #12765 Fixed SQL export with newlines

View File

@ -143,7 +143,7 @@ class DbSearch
unset($this->_criteriaColumnName);
} else {
$this->_criteriaColumnName = $GLOBALS['dbi']->escapeString(
$_REQUEST['criteriaColumnName'], true
$_REQUEST['criteriaColumnName']
);
}
}

View File

@ -685,7 +685,7 @@ class Node
{
if (!empty($searchClause)) {
$databases = array(
"%" . $GLOBALS['dbi']->escapeString($searchClause, true) . "%",
"%" . $GLOBALS['dbi']->escapeString($searchClause) . "%",
);
} elseif (!empty($GLOBALS['cfg']['Server']['only_db'])) {
$databases = $GLOBALS['cfg']['Server']['only_db'];
@ -712,10 +712,7 @@ class Node
if (!empty($searchClause)) {
$whereClause .= "AND " . Util::backquote($columnName)
. " LIKE '%";
$whereClause .= $GLOBALS['dbi']->escapeString(
$searchClause,
true
);
$whereClause .= $GLOBALS['dbi']->escapeString($searchClause);
$whereClause .= "%' ";
}