Commit: abce70f67af9dd138710e29775f5e1fc33bf34e5 Author: Kalle Sommer Nielsen <ka...@php.net> Mon, 23 Oct 2017 02:09:44 +0200 Parents: 109c1014fc31132715995a6a6e693e90cebb3b40 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=abce70f67af9dd138710e29775f5e1fc33bf34e5 Log: Minor cosmetics - Show reports without a CVE-ID as 'None' - Link to developer profile on people.php.net if a bug is assigned Changed paths: M www/bug.php Diff: diff --git a/www/bug.php b/www/bug.php index 30ee4d4..c5d136d 100644 --- a/www/bug.php +++ b/www/bug.php @@ -1,4 +1,4 @@ -<?php +<?php /* User interface for viewing and editing bug details */ // Obtain common includes @@ -654,7 +654,7 @@ if (!$show_bug_info) { <td><?php echo ($bug['status'] !== 'Spam') ? spam_protect(htmlspecialchars($bug['email'])) : 'Hidden because of SPAM'; ?></td> <th class="details">Assigned:</th> <?php if (!empty($bug['assign'])) { ?> - <td><a href="search.php?cmd=display&assign=<?php echo urlencode($bug['assign']), '">', htmlspecialchars($bug['assign']); ?></a></td> + <td><a href="search.php?cmd=display&assign=<?php echo urlencode($bug['assign']), '">', htmlspecialchars($bug['assign']); ?></a> (<a href="https://people.php.net/<?php echo urlencode($bug['assign']); ?>">profile</a>)</td> <?php } else { ?> <td><?php echo htmlspecialchars($bug['assign']); ?></td> <?php } ?> @@ -678,7 +678,7 @@ if (!$show_bug_info) { <th class="details">Private report:</th> <td><?php echo $bug['private'] == 'Y' ? 'Yes' : 'No'; ?></td> <th class="details">CVE-ID:</th> - <td><?php if (!empty($bug['cve_id'])) { printf('<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s" target="_blank">%1$s</a>', htmlspecialchars($bug['cve_id'])); } ?></td> + <td><?php if (!empty($bug['cve_id'])) { printf('<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-%s" target="_blank">%1$s</a>', htmlspecialchars($bug['cve_id'])); } else { ?><em>None</em><?php } ?></td> </tr> </table> </div> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php