J3.x

資料夾名稱開頭無法使用英文字母以外的字元

From Joomla! Documentation

Revision as of 21:39, 3 March 2021 by Shawnhy (talk | contribs) (Created page with "資料夾名稱開頭無法使用英文字母以外的字元")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎中文(台灣)‎ • ‎中文(繁體)‎

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

General Information

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)