| View previous topic :: View next topic |
| Author |
Message |
xnoob
Joined: 07 Apr 2012 Posts: 3
|
Posted: Apr 07, 2012 8:24 pm Post subject: Why do brackets turn to underscores when theyre uploaded? |
|
|
| [] symbols turn to _ in the filename after the file has been uploaded. Is there anyway to prevent this from happening? |
|
| Back to top |
|
 |
FZee
Joined: 03 Mar 2010 Posts: 107
|
Posted: Apr 07, 2012 8:44 pm Post subject: |
|
|
| Go here: Settings -->Files -->Sanitize filename (unchecked) |
|
| Back to top |
|
 |
xnoob
Joined: 07 Apr 2012 Posts: 3
|
Posted: Apr 07, 2012 9:13 pm Post subject: |
|
|
| i dont have this. im using xfilesharing pro 1.7 and all i have is a "Site Settings" menu |
|
| Back to top |
|
 |
xnoob
Joined: 07 Apr 2012 Posts: 3
|
Posted: Apr 07, 2012 10:49 pm Post subject: |
|
|
nvmd got it:
Just comment out this bit of code in the cgi-bin/upload.cgi file
| Code: | | $fhash{file_name_orig}=~s/[^a-zA-Z0-9-_\.]/_/gs; |
|
|
| Back to top |
|
 |
|