From 70f4f5dbe8419295dae6c851bb8c0394d256c8da Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 05:52:53 +0000 Subject: [PATCH] Make sure we keep our escaped chars intact --- includes/svnlib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/svnlib.php b/includes/svnlib.php index ed154c0..dfcc1a5 100644 --- a/includes/svnlib.php +++ b/includes/svnlib.php @@ -143,6 +143,11 @@ class SVNLib global $viewsvn; $output = $viewsvn->shell->exec($this->svnpath . ' ' . $command . ' 2>&1'); + + // make sure that we keep escaped chars + //$output = str_replace(array('\t', '\n', '\r'), array('\\\t', '\\\n', '\\\r'), $output); + $output = preg_replace('#\\\(.)#', '\\\\\\\\' . '\1', $output); + $temp = implode("\n", $output); if (strpos($temp, '(apr' . '_err=') !== false) { -- 2.43.5