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

@@ -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;