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
Strip bad characters from file name

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
TheCosmonaut



Joined: 10 Dec 2010
Posts: 4

PostPosted: Feb 02, 2011 5:09 pm    Post subject: Strip bad characters from file name Reply with quote

Hi there!

I'm wondering how to strip illegal characters from uploaded file names. For example, people can upload files with # ' " $ @ & and spaces in them and they get dropped into the upload directory with those names intact. I know the trick must be in the SaveFile function but I just don't know enough CGI to hack this together well.

Any suggestions?

Thanks,

--eric
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload 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