Author: Jim Winstead (jimwins) Date: 2025-03-22T11:27:15-07:00 Commit: https://github.com/php/web-news/commit/09734a828dc16c9c8b8f470f8e6475a745e07383 Raw diff: https://github.com/php/web-news/commit/09734a828dc16c9c8b8f470f8e6475a745e07383.diff
fix: Fix encoding of subjects in breadcrumb An example message that got it wrong: https://news-web.php.net/php.general.es/65734 Changed paths: M article.php Diff: diff --git a/article.php b/article.php index 4d346f6..6aa8e28 100644 --- a/article.php +++ b/article.php @@ -68,7 +68,7 @@ htmlspecialchars($group, ENT_QUOTES, "UTF-8") . '</a></li>'; echo ' <li class="breadcrumbs-item"><a class="breadcrumbs-item-link" href="/' . htmlspecialchars($group, ENT_QUOTES, "UTF-8") . '/' . $article . '">' . - format_title($mail['headers']['subject']) . '</a></li>'; + format_title($mail['headers']['subject'], 'utf-8') . '</a></li>'; echo ' </ul>'; echo '</nav>'; echo '<section class="content">';