Handle better backslash.

This commit is contained in:
Michal Čihař
2004-10-13 09:02:08 +00:00
parent d68283598e
commit a75ce10f48
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2004-10-13 Michal Čihař <michal@cihar.com> 2004-10-13 Michal Čihař <michal@cihar.com>
* lang/sync_lang.sh: Do not overwrite utf-8 files in some cases. * lang/sync_lang.sh: Do not overwrite utf-8 files in some cases.
* lang/czech: Fix some translations. * lang/czech: Fix some translations.
* libraries/transformations/text_plain__external.inc.php: Handle better
backslash.
2004-10-12 Alexander M. Turek <me@derrabus.de> 2004-10-12 Alexander M. Turek <me@derrabus.de>
* db_search.php, tbl_select.php, libraries/database_interface.lib.php: * db_search.php, tbl_select.php, libraries/database_interface.lib.php:

View File

@@ -16,6 +16,9 @@ function PMA_SecureShellArgs($s) {
$is_escaped = ! $is_escaped; $is_escaped = ! $is_escaped;
continue; continue;
} }
if ($is_escaped && $s[$i - 1] != '\\') {
$is_escaped = FALSE;
}
if (!$inside_double && !$is_escaped && $s[$i] == '\'') { if (!$inside_double && !$is_escaped && $s[$i] == '\'') {
$inside_single = ! $inside_single; $inside_single = ! $inside_single;
continue; continue;