fix: double-encoded '&' in headers of static pages
The API returns the headers of static pages (statisch/...) HTML-escaped twice, so '&' from the intranet editor showed as '&' on the site (e.g. 'GOOI&meer Radio' on /frequenties). Undo the second encoding for static page and contact page content until the API is fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ab3499e365
commit
9564ea515f
2 files changed
+18
No files matched your search
@@ -21,6 +21,9 @@ class ContactController extends Controller
|
||||
if ($page->edited) {
|
||||
$page->edited = Controller::JsonToDateTime($page->edited);
|
||||
}
|
||||
if (isset($page->content) && is_string($page->content)) {
|
||||
$page->content = Controller::fixDoubleEncodedEntities($page->content);
|
||||
}
|
||||
|
||||
return view('contact', ['page' => $page]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user