This release contains a security fix. Upgrading is recommended for every 4.x install. Details will be published in a security advisory.
Fixes
- Curation files are checked on the server. Saving the media edit form keeps a curation only when it names an image inside the item's own curation folder on the item's disk, or when it is already stored on the item. Curation URLs are only built for images below the item's directory, and the curation modal won't save over another item's file.
- No two media items share a curation folder. An upload, import or rename gets the
-{timestamp}suffix when another item in the same directory already has the name, whatever its extension. - A swapped file stays in the item's own folder. Swapping a file onto another disk now also moves it on the right disk.
- Deleting an item removes only its curation images, then its folder if empty, and leaves a folder shared with another item alone.
- Curations with no rotation no longer crash GD 2.3.3. A zero-angle rotation is skipped when a curation is saved.
Behaviour changes
- With
DatePathGeneratororUserPathGenerator, swapping an older item's file no longer moves the item into the upload's folder. - An older curation entry whose file lies outside the item's current curation folder is still kept and displayed, but saving the form no longer rewrites it.
What's Changed
Full Changelog: v4.2.7...v4.2.8