From 8a01e26d85818a58308f5f97c5038e44b180fd30 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 22:30:27 +0000 Subject: [PATCH] Clean the view.tpl log message --- templates/default/view.tpl | 2 +- view.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/default/view.tpl b/templates/default/view.tpl index f6d2a16..20f215b 100644 --- a/templates/default/view.tpl +++ b/templates/default/view.tpl @@ -12,7 +12,7 @@ $header
Revision: $logmsg[rev]
Author: $logmsg[author]
Date: $logmsg[date] $logmsg[timezone]
-
Message: $logmsg[message]
+
Message: $logmsg[message_clean]
diff --git a/view.php b/view.php index 20734fb..0d05e4f 100644 --- a/view.php +++ b/view.php @@ -49,6 +49,8 @@ if ($show['prev']) $logmsg = $viewsvn->svn->common->fetch_log($path, $viewsvn->paths->fetch_rev_num()); unset($logmsg['files']); +$logmsg['message_clean'] = nl2br(htmlspecialchars($logmsg['message'])); + $catdata = $viewsvn->svn->format(implode("\n", $viewsvn->svn->cat($repos, $relpath, $viewsvn->paths->fetch_rev_num()))); // ################################################################### -- 2.43.5