Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除图片时检查文件路径 #239

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

xuewenG
Copy link
Collaborator

@xuewenG xuewenG commented Dec 16, 2024

这个 PR 做了什么?

删除图片时检查文件路径,如果包含 .. 则不删除文件,因为正常情况下不会包含该字符,简单防止删除 upload 目录外的文件。

@xuewenG xuewenG merged commit fa4ad0a into kingwrcy:dev Dec 16, 2024
@xuewenG xuewenG added the bugfix Bug fix label Dec 16, 2024
@xuewenG xuewenG deleted the fix/check-image-path branch December 17, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant