com web/bugs: Minor cosmetics - Show reports without a CVE-ID as 'None' - Link to developer profile on people.php.net if a bug is assigned:
www/bug.php
| From: | Kalle Sommer Nielsen | Date: | Mon, 23 Oct 2017 00:09:44 +0000 |
| Subject: | com web/bugs: Minor cosmetics - Show reports without a CVE-ID as 'None' - Link to developer profile on people.php.net if a bug is assigned: www/bug.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26485@lists.php.net to get a copy of this message | ||
Commit: abce70f67af9dd138710e29775f5e1fc33bf34e5
Author: Kalle Sommer Nielsen <kalle@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>