From bee72b2f2dfb3513fa1b419c2451e2f460bc0f7a Mon Sep 17 00:00:00 2001 From: pjmattal Date: Sun, 24 Apr 2005 18:22:57 +0000 Subject: replaced \n with
as last step in comments transformation to avoid problems with multi-line comments (thanks juergen@hoetzel.info) --- web/lib/pkgfuncs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index bb049295..c0627ac0 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -403,7 +403,7 @@ function package_details($id=0) { print ""; print ""; print "\n"; - print str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"])))); + print str_replace("\n", "
", str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"]))))); print "
\n"; print "\n"; print "\n"; -- cgit v1.2.3-24-g4f1b