Nope. Better use stricter `preg_match` or something similar since you already know what kind of characters can appear in the file name.