Clean diff log message
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Sep 2005 17:04:03 +0000 (17:04 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 11 Sep 2005 17:04:03 +0000 (17:04 +0000)
diff.php
templates/default/diff.tpl

index f642c20843e3ddaac46015b1789474b54a600892..49cd990f0a93ad40f967e91201800f5053b9b3c0 100644 (file)
--- 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')
index 4d28ac53eb45ee84a6efe733d856d62b2118b938..cbf5f36eb88c1502c6c7dc1108cd8bb457b49cb4 100644 (file)
@@ -22,7 +22,7 @@ $header
        <div><strong>Revision:</strong> $log[rev]</div>
        <div><strong>Author:</strong> $log[author]</div>
        <div><strong>Date:</strong> $log[date] $log[timezone]</div>
-       <div><strong>Message:</strong> $log[message]</div>
+       <div><strong>Message:</strong> $log[message_clean]</div>
 </div>
 
 <br />