Skip to content
Snippets Groups Projects
Commit 628a2e6a authored by François Freitag's avatar François Freitag Committed by Thijs Kinkhorst
Browse files

Make errorreport validate Reply-To email

parent 7bed09a0
Branches
Tags
No related merge requests found
...@@ -51,7 +51,7 @@ $data['directory'] = dirname(dirname(__FILE__)); ...@@ -51,7 +51,7 @@ $data['directory'] = dirname(dirname(__FILE__));
if ($config->getOptionalBoolean('errorreporting', true)) { if ($config->getOptionalBoolean('errorreporting', true)) {
$mail = new SimpleSAML\Utils\EMail('SimpleSAMLphp error report from ' . $email); $mail = new SimpleSAML\Utils\EMail('SimpleSAMLphp error report from ' . $email);
$mail->setData($data); $mail->setData($data);
if ($email) { if (filter_var($email, FILTER_VALIDATE_EMAIL, FILTER_REQUIRE_SCALAR)) {
$mail->addReplyTo($email); $mail->addReplyTo($email);
} }
$mail->setText($text); $mail->setText($text);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment