replaced \n with <br> as last step in comments transformation to avoid

problems with multi-line comments (thanks juergen@hoetzel.info)
This commit is contained in:
pjmattal 2005-04-24 18:22:57 +00:00
parent e6ae7bcfbd
commit bee72b2f2d

View file

@ -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";