Skip to content

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

Open
@sebastian-marinescu

Description

@sebastian-marinescu

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

Metadata

Metadata

Assignees

Labels

area-corebugThe issue in the code or project, which should be addressed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions