diff --git a/ChangeLog b/ChangeLog index 5bbf5c513..c3ca4696d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2004-10-13 Michal Čihař * lang/sync_lang.sh: Do not overwrite utf-8 files in some cases. * lang/czech: Fix some translations. + * libraries/transformations/text_plain__external.inc.php: Handle better + backslash. 2004-10-12 Alexander M. Turek * db_search.php, tbl_select.php, libraries/database_interface.lib.php: diff --git a/libraries/transformations/text_plain__external.inc.php b/libraries/transformations/text_plain__external.inc.php index d30cb11a1..d7fa1af0e 100644 --- a/libraries/transformations/text_plain__external.inc.php +++ b/libraries/transformations/text_plain__external.inc.php @@ -16,6 +16,9 @@ function PMA_SecureShellArgs($s) { $is_escaped = ! $is_escaped; continue; } + if ($is_escaped && $s[$i - 1] != '\\') { + $is_escaped = FALSE; + } if (!$inside_double && !$is_escaped && $s[$i] == '\'') { $inside_single = ! $inside_single; continue;