JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix typo from preg/ereg change
[wfpl.git] / email.php
index 4f77bb0..a1e501a 100644 (file)
--- a/email.php
+++ b/email.php
@@ -90,7 +90,7 @@ function email_header($addr) {
        }
 
        #FIXME should allow many more characters here
-       $name = preg_replace("|[^a-z0-9 _/|i'.-]", '_', $name);
+       $name = preg_replace("|[^a-z0-9 _/'.-]|i", '_', $name);
 
        return $name . ' <' . $email . '>';
 }