Skip to content

History of commits

4477 commits

feat(consent): allow HTML in the cookie banner text

The banner text is entered by an administrator and is now sanitized on output with an inline-only allowlist instead of being escaped, so it can carry links to the cookie policy. The admin form documents the supported markup.
simba77 13 лип 2026, 23:53 Branch: 9.x 0d7c7ec

fix(i18n): translate the 404 page texts

pageNotFound() resolved its message through __(), which looks it up in the current translation domain - the domain of the module handling the request, where the string does not exist - so the page always fell back to English. The ERROR: 404 Not Found title never went through translation at all, being a plain default parameter value. Both strings are now taken from the system domain explicitly.
simba77 13 лип 2026, 21:00 Branch: 9.x 9b440db

feat(consent): allow HTML in the title and consents without a text page

The title is shown next to the checkbox and may now carry inline HTML with links, so it is sanitized on output with an inline-only allowlist and shown as plain text in page titles, breadcrumbs and admin tables. The text field became optional: a consent without text has no page of its own (/consent/{id} returns 404) and the form renders the title with its own links instead of linking to the text. Forms now get FormConsentDTO from ConsentService and render the shared system::app/consent-checkbox partial. The consents.title column is widened to TEXT; existing installations are updated with install/update_consent_title.php.
simba77 13 лип 2026, 20:44 Branch: 9.x b5da2fa

fix(collections): escape ckeditor attributes in the admin item form

Item text is stored raw and was printed unescaped into the value attribute of the CKEditor Vue component, so quotes inside the HTML (links, images, figures) closed the attribute early and mangled the editor content on load and on re-save. Escape all attributes in the partial itself, which is the output boundary and is only used inside this module.
simba77 13 лип 2026, 20:21 Branch: 9.x 76f3cb4