summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authortardo <tardo@nagi-fanboi.net>2007-09-22 23:01:40 +0200
committertardo <tardo@nagi-fanboi.net>2007-09-22 23:01:40 +0200
commit6a39da70fb9cfd6050deb1016fe0183157d8fb46 (patch)
treeacb09d9f53bc39b0026b998a01dd63e77c8753ef /web
parent988ecc442c44ae73320244f2d9b5f4f4b7e1723e (diff)
downloadaur-6a39da70fb9cfd6050deb1016fe0183157d8fb46.tar.gz
aur-6a39da70fb9cfd6050deb1016fe0183157d8fb46.tar.xz
Incomplete comment patch. FS 7968, 5128, 7383.
Properly parse comments from database. Thanks to Thralas for input. Signed-off-by: tardo <tardo@nagi-fanboi.net>
Diffstat (limited to 'web')
-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 b9ad0d4a..cd339c1f 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -568,7 +568,7 @@ function package_details($id=0, $SID="") {
print "</span>";
print "<tr><td class='boxSoft'>";
print "<code>\n";
- print str_replace("\n", "<br>", str_replace('"',"&quot;", htmlspecialchars(strip_tags(stripslashes($carr["Comments"])))));
+ print nl2br(htmlspecialchars($carr["Comments"]));
print "</code>\n";
print "</td></tr>\n";
print "</table>\n";