spec chars in file name

From: Date: Fri, 08 Sep 2006 21:45:03 +0000
Subject: spec chars in file name
Groups: php.general 
Request: Send a blank email to php-general+get-241511@lists.php.net to get a copy of this message
I made a simple file uploader and it works fine (at lest I thought it works fine). But, people uploaded files with so crazy names, like "MOORE's 20% Off.pdf" ?!?!?!?!? First, it was uploaded with slash in front of apostrophy - I fixed that. but, because of percent sign I can't link it. How can I get rid of special chars from file names? Thanks. -afan

« previous php.general (#241511) next »