Stripping out illegal characters

I keep forgetting it…

1
$safe_foldername = preg_replace('/[^a-zA-Z0-9]/','',$unsafe_foldername);

This, of course, supercedes the previous file name stripper – should be called instead of the replace…

Leave a Reply

Your email address will not be published. Required fields are marked *