mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
BUG12070: Its not possible to use the underscore in email addresses
Using IPFire's Mailservice does not allow to enter a senders mail address with the underscore. The function used to verify that is used from general-functions.pl. Now the function 'validemail' allows the underscore in the address. Fixes: #12070 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
82899ad1ce
commit
cc724c142a
@@ -784,7 +784,7 @@ sub validemail {
|
||||
return 0 if ( substr($parts[1],-1,1) eq '.' );
|
||||
|
||||
#check first addresspart (before '@' sign)
|
||||
return 0 if ( $parts[0] !~ m/^[a-zA-Z0-9\.!\-\+#]+$/ );
|
||||
return 0 if ( $parts[0] !~ m/^[a-zA-Z0-9\.!\-\_\+#]+$/ );
|
||||
|
||||
#check second addresspart (after '@' sign)
|
||||
return 0 if ( $parts[1] !~ m/^[a-zA-Z0-9\.\-]+$/ );
|
||||
|
||||
Reference in New Issue
Block a user