Skip to content

Restrict supercache filename to a safe character set#1050

Merged
donnchawp merged 1 commit into
trunkfrom
fix/supercache-filename-handling
May 27, 2026
Merged

Restrict supercache filename to a safe character set#1050
donnchawp merged 1 commit into
trunkfrom
fix/supercache-filename-handling

Conversation

@donnchawp
Copy link
Copy Markdown
Contributor

Ensures the generated supercache filename is always a single, well-formed path segment.

The supercache_filename_str filter chain can return arbitrary data, so the assembled suffix is now restricted to a safe set of characters (a-zA-Z0-9_-) before the filename is built. Legitimate values (-https, -mobile, mobile group names) are unaffected.

Ensure the generated supercache filename is always a single, well-formed path segment regardless of what filters return.
@donnchawp donnchawp merged commit 60bd350 into trunk May 27, 2026
6 checks passed
@donnchawp donnchawp deleted the fix/supercache-filename-handling branch May 27, 2026 18:01
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