summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_comments.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2010-10-03 21:51:45 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-01-19 21:18:45 +0100
commit60edcd04e52323050792252009512f7592f3b66c (patch)
tree686e2ed1ea9999fa2bbcdeb71a9edc29cd224b6a /web/template/pkg_comments.php
parenta417224988b0bbf16163c5e28fa4ca586ff2d707 (diff)
downloadaur-60edcd04e52323050792252009512f7592f3b66c.tar.gz
aur-60edcd04e52323050792252009512f7592f3b66c.tar.xz
Make external links in comments clickable (FS#20137).
Comments are now split at link boundaries and links are converted separately. I find this to be a much cleaner way than re-converting comments that have already been converted using htmlspecialchars(). This also doesn't require any callback procedure. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_comments.php')
-rw-r--r--web/template/pkg_comments.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php
index e4a9da13..dce3a171 100644
--- a/web/template/pkg_comments.php
+++ b/web/template/pkg_comments.php
@@ -25,7 +25,7 @@ while (list($indx, $carr) = each($comments)) { ?>
?></div>
<blockquote class="comment-body">
<div>
-<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
+<?php echo parse_comment($carr['Comments']) ?>
</div>
</blockquote>
<?php