Difference between revisions of "Unable to use a none alphabethic first character in folder name/zh-hant"
From Joomla! Documentation
(Created page with "資料夾名稱開頭無法使用英文字母以外的字元") |
(No difference)
|
Revision as of 21:31, 3 March 2021
Websites updating to Joomla 3.9.25 trying to set a image or file path in com_media or a folder in mod_random_image which doesn't start with an alphabetic leads to an error.
Versions affected
This pertains only to Joomla! version(s): 3.9.25
What is the cause
Due to a security update we no longer allow relative path strings in com_media configuration for image path and file path setting. The same filter is used in mod_random_image for the folder property. In case you try to use a character other then a-z as first character you get an error message that this path is not allowed for example "1-images".
How to fix
Update to Joomla 3.9.26. Use the following workaround only if you really need it!
In the meantime you remove the lines 53 to 56 in the file libraries/src/Form/Rule/FilePathRule.php (File on Github)