com web/people: Escape bugs titles: user.php

[email protected] (Maciej Sobaczewski)
Newsgroups php.webmaster
Message-ID <[email protected]>
Commit:    907e0134fd205944e395a8f05e0f56afa1484dee
Author:    Sobak <[email protected]>         Mon, 23 Mar 2015 21:25:32 +0100
Parents:   b264c5f6d5db758e2f8ec345e8799560293a3c40
Branches:  master

Link:       http://git.php.net/?p=web/people.git;a=commitdiff;h=907e0134fd205944e395a8f05e0f56afa1484dee

Log:
Escape bugs titles

Changed paths:
  M  user.php


Diff:
diff --git a/user.php b/user.php
index 051c47f..86fd02c 100644
--- a/user.php
+++ b/user.php
@@ -46,7 +46,7 @@ $master_url = "https://master.php.net/manage/users.php?username=" . urlencode($U
         <h2 id="bugs">Assigned (open) bugs</h2>
         <ul>
         <?php foreach ($BUGS as $bug) { ?>
-            <li><a href="<?php echo $bug["link"]?>"><?php echo $bug["title"] ?></a></li>
+            <li><a href="<?php echo $bug["link"]?>"><?php echo htmlspecialchars($bug["title"], ENT_QUOTES, 'UTF-8'); ?></a></li>
         <?php } ?>
         </ul>
     <?php } ?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.