RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File sharing script

File mirror script
Why do brackets turn to underscores when theyre uploaded?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
xnoob



Joined: 07 Apr 2012
Posts: 3

PostPosted: Apr 07, 2012 8:24 pm    Post subject: Why do brackets turn to underscores when theyre uploaded? Reply with quote

[] symbols turn to _ in the filename after the file has been uploaded. Is there anyway to prevent this from happening?
Back to top
View user's profile Send private message
FZee



Joined: 03 Mar 2010
Posts: 107

PostPosted: Apr 07, 2012 8:44 pm    Post subject: Reply with quote

Go here: Settings -->Files -->Sanitize filename (unchecked)
Back to top
View user's profile Send private message
xnoob



Joined: 07 Apr 2012
Posts: 3

PostPosted: Apr 07, 2012 9:13 pm    Post subject: Reply with quote

i dont have this. im using xfilesharing pro 1.7 and all i have is a "Site Settings" menu
Back to top
View user's profile Send private message
xnoob



Joined: 07 Apr 2012
Posts: 3

PostPosted: Apr 07, 2012 10:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright © 2003-2013 Sibsoft Ltd