-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Media browser filename containing "&" issues. #13412
Comments
just tried updating a different site & uploading/managing files with metacharacters in it - same problem exists in 2.5.6 |
Adding this as a note. MODX util files: |
It's a different thing but having "#" or "+" inside the filename break the image preview thumbnail. But renaming is possible. |
I am pretty sure a # in the name will break it no matter what, as the anchor tag has a special meaning in HTTP. |
Issue fixed in 3.x. |
MODX 3 now use flysystem library for dealing with files and it seems that the issue is already fixed (as @meshkov mentioned). I am closing it but feel free to reopen if the issue still actual. |
Hi @meshkov Does it mean that we should reopen the issue? |
Hi @alroniks yes, but it problem with TV, not with media browser. Maybe new issue? |
TV utilize media browser so it is related. Reopened. |
…16609) ### What does it do? URL encodes the src property used in building the image TV type’s phpthumb preview link. ### Why is it needed? The unencoded property was mangling the request when an ampersand was present in the file source path, preventing the creation of preview images. ### How to test 1. Create at least one folder and one image with '&' in the name. 2. Create an image TV, assign it to a Template/Resource, and select the images you’ve created via the TV. 3. Verify that the preview shows and also shown when selecting a different image via the TV. ### Related issue(s)/PR(s) For 3.x: Resolves #14264 Resolves #13412
Summary
Users can upload but rename or delete files containing linux metacharacters (&) in the file name. only tested the ampersand (&).
Trying to rename the file results in an error: The webserver does not have the necessary permissions to update the directory.
Try to delete the file gives error: Please specify a valid directory.: /vhome/accordfinancial.com/httpdocs/assets/AAA&AAA.pdf
file had to be manually removed VIA the shell
Step to reproduce
Upload and try to manipulate a file with "&" in the name.
Environment
Modx Version 2.5.4 running on centOS 6xx
PHP Version 5.4.45
The text was updated successfully, but these errors were encountered: