filebrowser-safe
filebrowser-safe copied to clipboard
modify FOLDER_REGEX to include dotted directory paths
Ran into an issue where renaming Media Library files failed on file paths with dotted directory names: e.g. /var/www/sites/sitename.com/....
Propose including \. in the default FOLDER_REGEX to account for this fairly common naming schema out of the box.
I haven't confirmed it, but I think this would allow admin users to traverse parent directories which could turn into a security issue.
Good point. So far being able to overwrite the FILEBROWSER_FOLDER_REGEX in settings.py is sufficient for us, maybe it'd be worth adding a note to the Media Library docs?