fix(tags.php): url encode tag links

This commit is contained in:
Cory Dransfeldt 2025-05-30 09:00:20 -07:00
parent 187c383804
commit 0368d5e8a5
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ function renderTags(array $tags): void {
foreach ($tags as $tag) {
$slug = strtolower(trim($tag));
echo '<a href="/tags/' . htmlspecialchars($slug) . '">#' . htmlspecialchars($slug) . '</a>';
echo '<a href="/tags/' . rawurlencode($slug) . '">#' . htmlspecialchars($slug) . '</a>';
}
echo '</div>';