Skip to content

Commit 06a08d8

Browse files
author
Marius Burkard
committed
- added missing allow domain only for previous commit
1 parent 2d4fb14 commit 06a08d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/rspamd_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function isValidEmail($email) {
6868
return false; // invalid character
6969
} elseif(strpos($domain, '..') !== false) {
7070
return false; // two dots not allowed
71-
} elseif(!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\", "", $local))) {
71+
} elseif($local && !preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/', str_replace("\\\\", "", $local))) {
7272
// character not valid in local part unless
7373
// local part is quoted
7474
if(!preg_match('/^"(\\\\"|[^"])+"$/', str_replace("\\\\", "", $local))) {

0 commit comments

Comments
 (0)