CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11832] File manger inconsistent on stripping whitespace

avatar
Created By: stephen cooper (scooper)
Date Submitted: Tue Jun 12 06:51:17 -0400 2018

Assigned To:
Version: 2.2.7
CMSMS Version: 2.2.7
Severity: Minor
Resolution: None
State: Open
Summary:
File manger inconsistent on stripping whitespace
Detailed Description:
Just managed to track down a bug for client who couldn't navigate to a new
directory they'd created in File Manager. Turns out there was a space on the end
of the directory name....

To repeat - go to File Manager and create a directory with a space on the end of
the directory name, eg 'duff '

You'll get a confirmation and the directory is successfully created (with the
space on the end).

If you then try to navigate to the newly created directory in the File Manager
you'll get an error message:
'Attempt to set working directory to an invalid location: /uploads/duff'

I assume the browsing is stripping whitepace but the creation isn't. 

If I had my way I'd replace all spaces with underscores but that's just me being
old fashioned - I guess we should just be stripping whitespace when we create
the directory.

Let me know if you need any more info. 

Cheers and thanks as always for all the effort ....

s.


History