diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-10-26 12:50:13 -0400 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-10-26 12:50:13 -0400 |
commit | 075ca25f02175c2cb629628821e8e150c383f569 (patch) | |
tree | 4f56683d7d2303bfe0551c8a71defb898dfd0be9 | |
parent | 92b19e78ac4e21d9a3b9022198a118d8dc13f5d4 (diff) |
pkg_details: Translate special characters to html entities in package description.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rw-r--r-- | web/template/pkg_details.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 3677d97..9c76ab3 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -44,7 +44,7 @@ $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : gmdate("r", intval( <p> <span class='f2'><?php echo $row['Name'] . ' ' . $row['Version'] ?></span><br /> <span class='f3'><a href="<?php echo $row['URL'] . '">' . $row['URL'] ?></a></span><br /> - <span class='f3'><?php echo $row["Description"]; ?></span> + <span class='f3'><?php echo htmlspecialchars($row['Description'], ENT_QUOTES); ?></span> </p> <p> |