From b532fcccef3428899a322f72fd8face841e7abf9 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 7 Apr 2007 04:18:31 +0000 Subject: [PATCH] Fix typo that was preventing loadSVNKeywords() from working. git-svn-id: http://htmlpurifier.org/svnroot@945 48356398-32a2-884e-a903-53898d9a118a --- xhtml-compiler/XHTMLCompiler/Page.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xhtml-compiler/XHTMLCompiler/Page.php b/xhtml-compiler/XHTMLCompiler/Page.php index e58e3e1..0501d6e 100644 --- a/xhtml-compiler/XHTMLCompiler/Page.php +++ b/xhtml-compiler/XHTMLCompiler/Page.php @@ -222,7 +222,7 @@ class XHTMLCompiler_Page protected function loadSVNKeywords() { // this is an expensive function // we should log calls to it - $raw_status = shell_exec('svn info "'.$this->getCachePath().'"'); + $raw_status = shell_exec('svn info "'.$this->getSourcePath().'"'); if (!$raw_status) { throw new Exception('Attempt to grab SVN info for non-versioned file ' . $this->getCachePath()); } @@ -230,6 +230,8 @@ class XHTMLCompiler_Page $raw_status = explode("\n", $raw_status); $status = array(); foreach ($raw_status as $i => $keyval) { + if (empty($keyval)) continue; + if (!strpos($keyval, ':')) continue; list($key, $value) = explode(': ', $keyval, 2); $status[$key] = $value; } -- 2.11.4.GIT