When you edit filename with a space, it replace with _
Like you try to change: "Test_File.zip" to "Test File.zip" it will still show as "Test_File.zip"
And if you edit a file that is in a folder, it should redirect back to that folder after editing not to the my files.
XFileSharing Pro - Space don't work when editing filename
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
In index.cgi replace
with
Code: Select all
$f->{file_name}=~s/%\d\d/_/gs;
$f->{file_name}=~s/%/_/gs;
$f->{file_name}=~s/[\s\#\"]+/_/gs;
$f->{file_name}=~s/[^\w\d\.-]/_/g if $c->{sanitize_filename};
Code: Select all
$f->{file_name}=~s/%(\d\d)/chr(hex($1))/egs;
$f->{file_name}=~s/%/_/gs;
$f->{file_name}=~s/\s{2,}/ /gs;
$f->{file_name}=~s/[\#\"]+/_/gs;
$f->{file_name}=~s/[^\w\d\.-]/_/g if $c->{sanitize_filename};