summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-04-24 20:22:57 +0200
committerpjmattal <pjmattal>2005-04-24 20:22:57 +0200
commitbee72b2f2dfb3513fa1b419c2451e2f460bc0f7a (patch)
tree682bb08360486fa27fde2e199c94363e8ce67b16 /web/lib
parente6ae7bcfbd2e2575190580a63fa5b39188a1efc8 (diff)
downloadaur-bee72b2f2dfb3513fa1b419c2451e2f460bc0f7a.tar.gz
aur-bee72b2f2dfb3513fa1b419c2451e2f460bc0f7a.tar.xz
replaced \n with <br> as last step in comments transformation to avoid
problems with multi-line comments (thanks juergen@hoetzel.info)
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc2
1 files changed, 1 insertions, 1 deletions
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 "</span>";
print "<tr><td class='boxSoft'>";
print "<code>\n";
- print str_replace('"',"&quot;", htmlspecialchars(strip_tags(stripslashes($carr["Comments"]))));
+ print str_replace("\n", "<br>", str_replace('"',"&quot;", htmlspecialchars(strip_tags(stripslashes($carr["Comments"])))));
print "</code>\n";
print "</td></tr>\n";
print "</table>\n";