Skip to content

Closed - #58

Closed
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-files-entry-validation
Closed

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-files-entry-validation

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Files::get() indexed the five $_FILES keys without checking them, so a
value that is not a file entry raised a TypeError or warnings, and the
full_path key PHP sends for directory uploads was dropped. set() was a
no-op to keep uploads read-only, but the inherited def() still wrote into
the data, so fake entries could be injected.

get() now returns the default for malformed entries and passes full_path
through, def() is a no-op like set(), and both are deprecated in favour of
a LogicException in 5.0. The docblock no longer claims the $filter
argument is applied, and makeSafeFileName() cleans the client-supplied
name for use in a path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar Hackwar closed this Nov 13, 2026
@Hackwar Hackwar changed the title [4.x] Validate file entries, return full_path and make def() read-only in Files Closed Nov 13, 2026
@Hackwar
Hackwar deleted the 4.x-files-entry-validation branch November 13, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant