pkg_search_results: Translate special characters to html entities.

Reported-by: Cedric Staniewski <cedric@gmx.ca>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2009-10-26 12:54:31 -04:00
parent 075ca25f02
commit d29a7a5a67

View file

@ -67,7 +67,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
<?php endif; ?>
<?php endif; ?>
<td class='<?php print $c ?>'><span class='f4'><span class='blue'>
<?php print $row["Description"] ?></span></span></td>
<?php print htmlspecialchars($row['Description'], ENT_QUOTES); ?></span></span></td>
<td class='<?php print $c ?>'><span class='f5'><span class='blue'>
<?php if (isset($row["Maintainer"])): ?>
<a href='packages.php?K=<?php print $row['Maintainer'] ?>&amp;SeB=m'><?php print $row['Maintainer'] ?></a>