projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfe7ee1
)
ftpserver.pl: Updated email regex from commit 98f7ca7e971006
author
Steve Holme
<steve_holme@hotmail.com>
Thu, 19 Sep 2013 11:44:27 +0000
(12:44 +0100)
committer
Steve Holme
<steve_holme@hotmail.com>
Thu, 19 Sep 2013 11:44:27 +0000
(12:44 +0100)
...to not be as strict as it was rejecting valid numeric email
addresses.
tests/ftpserver.pl
patch
|
blob
|
history
diff --git
a/tests/ftpserver.pl
b/tests/ftpserver.pl
index
4f5bbbb
..
88fd265
100755
(executable)
--- a/
tests/ftpserver.pl
+++ b/
tests/ftpserver.pl
@@
-764,7
+764,7
@@
sub MAIL_smtp {
# Validate the from address (only <> and a valid email address inside
# <> are allowed, such as <user@example.com>)
if ((!$from) || (($from ne "<>") && ($from !~
- /^<([a-zA-Z
][\w_.
]+)\@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})>$/))) {
+ /^<([a-zA-Z
0-9._%+-
]+)\@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})>$/))) {
sendcontrol "501 Invalid address\r\n";
}
else {