mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
added strip_tags() and htmlspecialchars() to improve comments safety
This commit is contained in:
parent
890e26ca23
commit
7246c45eb3
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ function package_details($id=0) {
|
||||||
print "</span>";
|
print "</span>";
|
||||||
print "<tr><td class='boxSoft'>";
|
print "<tr><td class='boxSoft'>";
|
||||||
print "<code>\n";
|
print "<code>\n";
|
||||||
print str_replace('"',""", stripslashes($carr["Comments"]));
|
print str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"]))));
|
||||||
print "</code>\n";
|
print "</code>\n";
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue