com web/bugs: Fix quick searches on the main page: www/index.php
| From: | Maciej Sobaczewski | Date: | Mon, 23 Jan 2017 15:39:26 +0000 |
| Subject: | com web/bugs: Fix quick searches on the main page: www/index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25544@lists.php.net to get a copy of this message | ||
Commit: 911855d305c336cc7d6d7d639d65bbb661f1887a
Author: Sobak <msobaczewski@gmail.com> Mon, 23 Jan 2017 16:39:26 +0100
Parents: 38eb30b7ca8c7ac13d3ba9606266ef9500dac2bc
Branches: redesign
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=911855d305c336cc7d6d7d639d65bbb661f1887a
Log:
Fix quick searches on the main page
Changed paths:
M www/index.php
Diff:
diff --git a/www/index.php b/www/index.php
index 7373c80..1ac31b9 100644
--- a/www/index..php
+++ b/www/index.php
@@ -112,7 +112,7 @@ how search works.</p>
// Make correct URLs
$searches = array_map(function($search) use ($base_default) {
- $search['url'] = '<a href=""' . $base_default .
urlencode($search['url']) . '>' .$search['title'] .
'</a>';
+ $search['url'] = '<a href="' . $base_default .
htmlspecialchars($search['url']) . '">' .$search['title'] .
'</a>';
return $search;
}, $searches);
@@ -132,7 +132,7 @@ how search works.</p>
</tr>
<tr>
<td class="sub"><?= $searches['56']['url']
?></td>
- <td><a href="">Random bug</a></td>
+ <td><a href="/random">Random bug</a></td>
</tr>
<tr>
<td class="sub"><?= $searches['70']['url']
?></td>