Skip to content

local fs path validation - use isRestrictedDir()#19269

Merged
brandonkelly merged 3 commits into
5.xfrom
feature/local-fs-path-validation
Jul 20, 2026
Merged

local fs path validation - use isRestrictedDir()#19269
brandonkelly merged 3 commits into
5.xfrom
feature/local-fs-path-validation

Conversation

@i-just

@i-just i-just commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Description

When validating Local FS Base Path, use the new Security::isRestrictedDir() method. In addition to disallowing Craft-specific system directories, it’ll also disallow other sensitive directories.

Related issues

n/a

@i-just
i-just requested a review from brandonkelly July 20, 2026 10:12
@brandonkelly
brandonkelly changed the base branch from 5.11 to 5.x July 20, 2026 16:18
@brandonkelly
brandonkelly force-pushed the feature/local-fs-path-validation branch from 8ba2506 to b4170d6 Compare July 20, 2026 16:19
@brandonkelly
brandonkelly merged commit c21ab57 into 5.x Jul 20, 2026
7 checks passed
@brandonkelly
brandonkelly deleted the feature/local-fs-path-validation branch July 20, 2026 16:20
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.

2 participants