Fix escaping detection on multi byte strings.
This commit is contained in:
@@ -9,6 +9,7 @@ $Source$
|
|||||||
* lang/czech: Translation fixes.
|
* lang/czech: Translation fixes.
|
||||||
* libraries/common.lib.php: Group databases by rightmost separator (bug
|
* libraries/common.lib.php: Group databases by rightmost separator (bug
|
||||||
#1325651).
|
#1325651).
|
||||||
|
* libraries/string.lib.php: Fix escaping detection on multi byte strings.
|
||||||
|
|
||||||
2005-10-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-10-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* css/phpmyadmin.css.php: border around tabs bug #1326730
|
* css/phpmyadmin.css.php: border around tabs bug #1326730
|
||||||
|
@@ -134,7 +134,7 @@ function PMA_STR_charIsEscaped($string, $pos, $start = 0)
|
|||||||
|
|
||||||
$p = $pos - 1;
|
$p = $pos - 1;
|
||||||
$escaped = FALSE;
|
$escaped = FALSE;
|
||||||
while (($p >= $start) && ($string[$p] == '\\')) {
|
while (($p >= $start) && (PMA_substr($string, $p, 1) == '\\')) {
|
||||||
$escaped = !$escaped;
|
$escaped = !$escaped;
|
||||||
$p--;
|
$p--;
|
||||||
} // end while
|
} // end while
|
||||||
|
Reference in New Issue
Block a user