Skip to content
Snippets Groups Projects
Commit 06a08d81 authored by Marius Burkard's avatar Marius Burkard
Browse files

- added missing allow domain only for previous commit

parent 2d4fb14e
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class rspamd_plugin { ...@@ -68,7 +68,7 @@ class rspamd_plugin {
return false; // invalid character return false; // invalid character
} elseif(strpos($domain, '..') !== false) { } elseif(strpos($domain, '..') !== false) {
return false; // two dots not allowed return false; // two dots not allowed
} elseif(!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\", "", $local))) { } elseif($local && !preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\", "", $local))) {
// character not valid in local part unless // character not valid in local part unless
// local part is quoted // local part is quoted
if(!preg_match('/^"(\\\\"|[^"])+"$/', str_replace("\\\\", "", $local))) { if(!preg_match('/^"(\\\\"|[^"])+"$/', str_replace("\\\\", "", $local))) {
......
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