JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix typo from preg/ereg change
authorJason Woofenden <jason@jasonwoof.com>
Tue, 26 May 2015 18:07:28 +0000 (14:07 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 26 May 2015 18:07:28 +0000 (14:07 -0400)
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 . '>';
 }