Skip to content
Snippets Groups Projects
Commit 578b2c23 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added missing underscore to replaced char class chars

parent 545ebaa4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment