What's Changed
- [4.x] Remove unused pxlrbt/filament-excel dependency by @Abdulmajeed-Jamaan in #464
- Fix render issue by @Abdulmajeed-Jamaan in #457
- Fix file upload by @Abdulmajeed-Jamaan in #458
- Support custom core fields via config by @Abdulmajeed-Jamaan in #419
v4.1.0 (or v4.0.17)
🔒 Security
- Prevent XSS in form responses, notes, and HTML content (#457):
- Plain-text field responses (
FieldsContract::getResponse(),Textarea, collection-backed fields) and responsenotesare now HTML-escaped before rendering. - Intentional HTML content (
RichEditorresponses,Paragraphdescriptions, formdetails, andconfirmation-message) is now sanitized viaBolt::sanitizeHtml()usingvoku/anti-xss. - Added the
zeus-bolt.html_sanitizerconfig option (implementingLaraZeus\Bolt\Contracts\HtmlSanitizer) to allow swapping the default sanitizer.
- Plain-text field responses (
- Restrict file uploads by file type, MIME type, and size (#458):
FileUploadfields now enforce both server-side MIME type and extension validation, blocking executable and active markup files (e.g.php,sh,svg,html,js).- Added per-field Accepted File Types (
image,video,audio,document) and Max File Size (KB/MB) options in the form builder. - Added
zeus-bolt.uploadFileTypesandzeus-bolt.uploadMaxSizeconfig options. - Restricted
CategoryResourcelogo uploads with->image().
✨ Features
- Configure allowed form builder fields via
coreFields(#419):- Added
zeus-bolt.coreFields(defaultnull) to explicitly whitelist which field classes appear in the form builder (sorted by$sort, with the first offered field used as the default). - Previously saved fields whose type is later removed from
coreFieldscontinue to display their proper label when editing forms. - Updated configuration and custom fields documentation.
- Added
🐛 Fixes & Maintenance
- Queued response exports & dependency cleanup (#464):
- Removed the unused
pxlrbt/filament-exceldependency. - Fixed
ResponseExporterfor queued exports by caching theFormlookup once per exporter instance (withoutGlobalScopes()->with('fields')) and makinggetColumns()null-safe outside Livewire requests. - Stopped tracking
composer.lock.
- Removed the unused
⚠️ Upgrade Notes
- File Uploads: Existing
FileUploadfields with no specific types selected now accept all extensions configured inzeus-bolt.uploadFileTypes. If your forms require additional extensions (e.g.heic,rar), add them toconfig/zeus-bolt.php. - Field Cache: After changing
zeus-bolt.coreFieldsoutsidelocal, runphp artisan cache:forget bolt.fields.
Full Changelog: v4.0.16...v4.0.17