Commit Graph
6 Commits
Author SHA1 Message Date
deepDiverPaul 515e4cac1f feat(ext-tracking): Add tracking extension for HTML/JS snippets
Adds a new extension allowing injection of custom code into the page head. Includes an admin interface for saving snippets, secure save routes with CSRF protection, and tests verifying the functionality. Also updates core Extensions.php to support callable HTML blocks for lazy evaluation.
2026-11-30 22:51:03 +01:00
deepDiverPaul 2b73242d04 security: add CSRF protection and harden core handling
Add CSRF token validation and include tokens in authentication, website manager, and GrapesJS forms and requests. Harden login with password hash verification and session ID regeneration, validate database identifiers and charset, and secure upload MIME detection and filename generation.

Update nullable type declarations and PHP syntax across core contracts and modules, switch the Docker image to PHP 8.4, and move the theme script asset to the end of the page. Refresh the PageBuilderBody distribution assets.
2026-11-24 09:26:15 +00:00
deepDiverPaul b6960efd82 refactor asset rendering with HTML escaping
Improve security by escaping asset attributes and URLs in phpb_registered_assets.
Refactor Extensions class to render assets as HTML strings and add getAssetsArray for raw access.
Update phpb_e helper to accept nullable strings.
2026-11-23 12:35:46 +01:00
Paul Spenke 267d8004e0 many updates 2023-08-20 23:45:24 +08:00
Paul Spenke 706315cd34 update plugi 2023-06-29 11:31:43 +08:00
Paul Spenke 78ea342c09 Add 'plugi-core/' from commit '6c478c54d048ab2fd5af4e8e79074153fb594c16'
git-subtree-dir: plugi-core
git-subtree-mainline: d4c734cdbd
git-subtree-split: 6c478c54d0
2023-06-13 07:27:11 +08:00