diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-07-01 11:50:26 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-07-01 11:50:26 +0200 |
commit | 578b2c23b773d74f9fc04c48baa5f826020209ba (patch) | |
tree | b6f87e11f25c6c672a8444a1f7e1d1599d2342fc /inc/Mailer.class.php | |
parent | 545ebaa42520487f1cd412e7113b0b8404f55a85 (diff) | |
download | rpg-578b2c23b773d74f9fc04c48baa5f826020209ba.tar.gz rpg-578b2c23b773d74f9fc04c48baa5f826020209ba.tar.bz2 |
added missing underscore to replaced char class chars
Diffstat (limited to 'inc/Mailer.class.php')
-rw-r--r-- | inc/Mailer.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php index b0af967de..c85e61395 100644 --- a/inc/Mailer.class.php +++ b/inc/Mailer.class.php @@ -132,8 +132,8 @@ class Mailer { public function setHeader($header, $value, $clean = true) { $header = str_replace(' ', '-', ucwords(strtolower(str_replace('-', ' ', $header)))); // streamline casing if($clean) { - $header = preg_replace('/[^a-zA-Z0-9 \-\.\+\@]+/', '', $header); - $value = preg_replace('/[^a-zA-Z0-9 \-\.\+\@<>]+/', '', $value); + $header = preg_replace('/[^a-zA-Z0-9_ \-\.\+\@]+/', '', $header); + $value = preg_replace('/[^a-zA-Z0-9_ \-\.\+\@<>]+/', '', $value); } // empty value deletes |