Repository navigation
phpBB SEO Lite 1.1.6
phpBB SEO Framework Lite 1.1.6
🐛 Bug Fixes & Improvements
-
Subdomain & Misconfigured Host 301 Redirect Robustness:
- Resolved an issue where native legacy URLs (
viewtopic.php?t=Xandviewforum.php?f=X) silently failed to 301-redirect to their clean canonical SEO permalinks on boards hosted on subdomains (e.g.forum.example.comwhereserver_namein ACP was set to the apex domainexample.com), or on boards whereserver_namewas unconfigured (localhost) or prefixed with a scheme (https://). - Centralized host extraction and strict domain trust validation in
UrlSafetyValidator::isHostTrusted(), establishing a unified, authoritative validation engine across bothUrlSafetyValidatorandRequestContextFactory. - Added support for legitimate subdomain hierarchies (
str_ends_with($targetHost, '.' . $trustedHost)) and matching against live request host /generate_board_url()while strictly rejecting arbitrary open redirect vectors (boundary collisions likeevil-domain.com, suffix spoofs likedomain.com.evil.com, CRLF, and unsafe schemes).
- Resolved an issue where native legacy URLs (
-
Double-Slash in Core Canonical Tag (
//) & Duplicate Tag Elimination:- Fixed duplicate and malformed
<link rel="canonical">and<meta name="description">tags reported in Google Search Console ("More than one canonical tag"). - phpBB core's
viewforum.phpline 463 concatenatesgenerate_board_url() . '/' . append_sid(...), which introduced a double slash (https://domain.com//forum/...) when combined with rewritten root-relative paths. - Resolved across three defensive layers:
- Hardened
CanonicalResolverwith single-slash normalization (rtrim($boardUrl, '/') . '/' . ltrim($cleanSeoPath, '/')) and automated scheme deduplication (https://https://cleanup). - Healed template-assigned variable
U_CANONICALinSeoListener::onViewForumTopicsso template references always receive the clean canonical URL. - Added buffer-level deduplication in
MetadataListenerto cleanly strip any core/template-rendered canonical and description tags before outputting the single authoritative SEO metadata block.
- Hardened
- Fixed duplicate and malformed
Details & Links
- Release Tag: v1.1.6
- Repository: phpbb-seo/seo-framework
- Full Changelog: CHANGELOG.md