From a75ce10f4832a053d30a08aa872dcc227ce2aa8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 13 Oct 2004 09:02:08 +0000 Subject: [PATCH] Handle better backslash. --- ChangeLog | 2 ++ libraries/transformations/text_plain__external.inc.php | 3 +++ 2 files changed, 5 insertions(+) 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;