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

File with two dots in name can be uploaded, but not deleted #14320

Open
sebastian-marinescu opened this Issue Feb 1, 2019 · 0 comments

Comments

Projects
None yet
3 participants
@sebastian-marinescu
Copy link
Contributor

sebastian-marinescu commented Feb 1, 2019

Bug report

Summary

The MODX media-manager allows uploading of files with two dots ("..") in the filename,
but deleting it is impossible.

Step to reproduce

Create a txt-file with the name datei-mit_zwei..punkten.txt.
Upload it via media-manager. Try to delete it afterwards.

Observed behavior

Trying to delete it throws an error:
image
(the error says: "Please provide a valid directory")

Expected behavior

It should either not allow uploading such files in the first place, or if it does, make sure it can be deleted.

Environment

MODX 2.7.0-pl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment