From: Steve Holme Date: Thu, 19 Sep 2013 11:44:27 +0000 (+0100) Subject: ftpserver.pl: Updated email regex from commit 98f7ca7e971006 X-Git-Tag: upstream/7.37.1~1264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9300bb826d25f975dd64dcc1e5ede0a4ff7aa208;p=platform%2Fupstream%2Fcurl.git ftpserver.pl: Updated email regex from commit 98f7ca7e971006 ...to not be as strict as it was rejecting valid numeric email addresses. --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 4f5bbbb..88fd265 100755 --- 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 ) if ((!$from) || (($from ne "<>") && ($from !~ - /^<([a-zA-Z][\w_.]+)\@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})>$/))) { + /^<([a-zA-Z0-9._%+-]+)\@([a-zA-Z0-9.-]+).([a-zA-Z]{2,4})>$/))) { sendcontrol "501 Invalid address\r\n"; } else {