Skip to content

fix: remove invalid characters constant and use filename validator for sanitization - #3494

Merged
Chartman123 merged 1 commit into
mainfrom
fix/upload-files-with-windows-compatibility
Jul 15, 2026
Merged

Chartman123 merged 1 commit into
mainfrom
fix/upload-files-with-windows-compatibility

Conversation

@Chartman123

Copy link
Copy Markdown
Collaborator

This fixes #3458. Now that we're at min version 32, we can use sanitizeFilename() from OCP\Files\IFilenameValidator to cleanup the names of uploaded files.

@Chartman123 Chartman123 added bug Something isn't working php PHP related ticket 3. to review Waiting for reviews feature: 📝 submitting responses labels Jul 14, 2026
@Chartman123

Copy link
Copy Markdown
Collaborator Author

/backport to stable5.3

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Jul 14, 2026

@Koc Koc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like tests require adjustment

@Chartman123
Chartman123 force-pushed the fix/upload-files-with-windows-compatibility branch 2 times, most recently from 63ee717 to 1b1e73d Compare July 14, 2026 22:29
@Chartman123

Copy link
Copy Markdown
Collaborator Author

It seems like tests require adjustment

They're taking like forever to run today... 🙈

@Chartman123
Chartman123 force-pushed the fix/upload-files-with-windows-compatibility branch from 1b1e73d to 597d70e Compare July 15, 2026 06:45
…r sanitization

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
Signed-off-by: GitHub <noreply@github.com>
@Chartman123
Chartman123 force-pushed the fix/upload-files-with-windows-compatibility branch from 597d70e to 71d77d8 Compare July 15, 2026 07:14
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Chartman123
Chartman123 merged commit 3ee727d into main Jul 15, 2026
53 checks passed
@Chartman123
Chartman123 deleted the fix/upload-files-with-windows-compatibility branch July 15, 2026 08:14
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: 📝 submitting responses php PHP related ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload failed with period at the end of the question

5 participants