Fix escaping detection on multi byte strings.

This commit is contained in:
Michal Čihař
2005-10-17 12:15:30 +00:00
parent a47cd322ab
commit 04a69209ad
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ $Source$
* lang/czech: Translation fixes.
* libraries/common.lib.php: Group databases by rightmost separator (bug
#1325651).
* libraries/string.lib.php: Fix escaping detection on multi byte strings.
2005-10-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* css/phpmyadmin.css.php: border around tabs bug #1326730

View File

@@ -134,7 +134,7 @@ function PMA_STR_charIsEscaped($string, $pos, $start = 0)
$p = $pos - 1;
$escaped = FALSE;
while (($p >= $start) && ($string[$p] == '\\')) {
while (($p >= $start) && (PMA_substr($string, $p, 1) == '\\')) {
$escaped = !$escaped;
$p--;
} // end while