No Code Attached Yet bug
avatar particthistle
particthistle
21 Apr 2021

Steps to reproduce the issue

Upload a file in com_templates with spaces in the file name.

Expected result

Code could/should sanitize the file name on upload.

Media manager allows files to be uploaded with spaces , so raising a second issue to discuss if Media Manager should also sanitize filenames. com_templates should also allow files to be uploaded with spaces.

Actual result

image

avatar particthistle particthistle - open - 21 Apr 2021
avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Apr 2021
avatar ReLater
ReLater - comment - 21 Apr 2021

I prefer this behavior instead of hidden sanitizing (at least without confirguration settings). Spaces are still not recommended in web but not forbidden. If Joomla has problems with these filenames (I don't know) it would be a Joomla bug.

avatar richard67
richard67 - comment - 21 Apr 2021
avatar brianteeman
brianteeman - comment - 21 Apr 2021
avatar particthistle particthistle - change - 22 Apr 2021
Title
[4.0 / 4.1] File Upload in com_templates doesn't sanitize filenames and rejects filenames with spaces
[4.0 / 4.1] File Upload in com_templates doesn't allow filenames with spaces
avatar particthistle particthistle - edited - 22 Apr 2021
avatar particthistle particthistle - change - 22 Apr 2021
The description was changed
avatar particthistle particthistle - edited - 22 Apr 2021
avatar particthistle
particthistle - comment - 22 Apr 2021

Further to discussions in #33214

  • com_templates returns the error above with . files (tested on nightly build 21 April)
  • other file characters that won't work in various file systems will be prevented from being created by those file systems, so the suggestion of sanitizing file names is now dropped from this issue and #33214 has been closed.
  • The issue now to be resolved here is to allow files with filenames containing spaces to be uploaded to com_templates if spaces now are an allowed filename structure.
avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment