From 6a39da70fb9cfd6050deb1016fe0183157d8fb46 Mon Sep 17 00:00:00 2001 From: tardo Date: Sat, 22 Sep 2007 17:01:40 -0400 Subject: Incomplete comment patch. FS 7968, 5128, 7383. Properly parse comments from database. Thanks to Thralas for input. Signed-off-by: tardo --- web/lib/pkgfuncs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index b9ad0d4..cd339c1 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -568,7 +568,7 @@ function package_details($id=0, $SID="") { print ""; print ""; print "\n"; - print str_replace("\n", "
", str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"]))))); + print nl2br(htmlspecialchars($carr["Comments"])); print "
\n"; print "\n"; print "\n"; -- cgit v1.2.3-54-g00ecf