X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=email.php;h=74518ab17b95c461df87ce23f50527208ceb71fa;hp=4f77bb0dac6eb6817a3194b8c15e07a942852860;hb=HEAD;hpb=196deb2416748b09200f620247a344563dff4c38 diff --git a/email.php b/email.php index 4f77bb0..74518ab 100644 --- a/email.php +++ b/email.php @@ -1,20 +1,9 @@ . - +# This program is in the public domain within the United States. Additionally, +# we waive copyright and related rights in the work worldwide through the CC0 +# 1.0 Universal public domain dedication, which can be found at +# http://creativecommons.org/publicdomain/zero/1.0/ # This function will SAFELY send e-mail (ie you can pass parameters to it @@ -90,7 +79,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 . '>'; }