JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added dwt_append_raw(), format_filename() converts ^[.-] to _ instead of removing...
[wfpl.git] / format.php
index 1bac609..1fc74af 100644 (file)
@@ -33,7 +33,7 @@ function format_zip($str) {
 function format_filename($str) {
        $str = strtolower($str);
        $str = ereg_replace('[^a-z0-9_.-]', '_', $str);
-       return ereg_replace('^[0-9.-]*', '', $str);
+       return ereg_replace('^[.-]', '_', $str);
 }
 
 function format_varname($str) {