| View previous topic :: View next topic |
| Author |
Message |
qq_bbq
Joined: 05 Jul 2009 Posts: 114
|
Posted: Aug 23, 2009 7:40 pm Post subject: Space don't work when editing filename |
|
|
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. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 24, 2009 12:32 pm Post subject: |
|
|
| Thanks! Will be fixed in next version. |
|
| Back to top |
|
 |
Eskick
Joined: 10 Mar 2009 Posts: 81
|
Posted: Aug 26, 2009 12:31 am Post subject: |
|
|
| PilgrimX182 wrote: | | Thanks! Will be fixed in next version. |
Please also tell us an add and remove fix for those who do not with to update to the next version or those who cannot |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 26, 2009 6:18 am Post subject: |
|
|
In index.cgi replace
| Code: | $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}; |
with
| Code: | $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}; |
|
|
| Back to top |
|
 |
|