From 403f102982512cefb7ab4b6d5193c1c1c1629979 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Sep 2005 17:04:03 +0000 Subject: [PATCH] Clean diff log message --- diff.php | 2 ++ templates/default/diff.tpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/diff.php b/diff.php index f642c20..49cd990 100644 --- a/diff.php +++ b/diff.php @@ -50,6 +50,8 @@ if ($show['fullchangeset']) $log = $viewsvn->svn->common->fetch_log($path, $high); +$log['message_clean'] = nl2br(htmlspecialchars($log['message'])); + // ################################################################### if ($high == 'HEAD') diff --git a/templates/default/diff.tpl b/templates/default/diff.tpl index 4d28ac5..cbf5f36 100644 --- a/templates/default/diff.tpl +++ b/templates/default/diff.tpl @@ -22,7 +22,7 @@ $header
Revision: $log[rev]
Author: $log[author]
Date: $log[date] $log[timezone]
-
Message: $log[message]
+
Message: $log[message_clean]

-- 2.43.5