Create via FTP a new folder in the images folder. Use for the folder name: test space
Try to open this folder from the edit article page to select an image.
I can go inside the folder with a space in the name
I can't go inside the folder with a space in the name
Joomla 3.8.1
PHP 7.0
Browser Firefox 56.0 (64 bit) and Chrome 61.0.3163.100 (64 bit)
Labels |
Added:
?
|
Category | ⇒ | Administration |
Status | New | ⇒ | Discussion |
yes, creating a new folder with a space in it you get the error message, but no error message when try to open it in the media manager.
AlexRed, Joomla use a safe pattern to remove any char that can give problems.
Space can break, so Joomla remove it.
test space, is changed to testspace (no space inside) it's why media manager cannot show inside this folder.
Maybe you can add a warning icon near the file/folder name, like some others media managers when a name is wrong or contains not accepted characters.
I wonder if we could not use rawurlencode()
after domain to get the nice +
or %20
for spaces, therefore permitting spaces in folders title.
It might work but it might be tricky if you have nested parts that all need encoding
Labels |
Added:
J3 Issue
|
This is not an issue in J4.
Since this issue arises when performed outside of Joomla, can this be considered as won't fix?
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-10 06:34:01 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_By | joomla-cms-bot | ⇒ | alikon |
Labels |
Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/18287
Is there a way to fix this in code or any patches available. I am having this issues in my site. How to fix this. I cannot traversing the folder with spaces. but i can go inside folder without spaces.
If i changed it it will affect the image path on frontend.
Mass changes in a db dump.
i woudl say that this is the expected behaviour and is why joomla itself will not allow you to create a folder with a space in it