From 7f5de8a9a13e87e9a7d8cac106c5acdce4287f71 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 15 Aug 2014 16:38:57 +1000 Subject: [PATCH] ckdb - allow '-' in email domains --- src/ckdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index ee6e5592..0ba6f981 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -643,7 +643,7 @@ static char *first_pool_message; static sem_t socketer_sem; static const char *userpatt = "^[!-~]*$"; // no spaces -static const char *mailpatt = "^[A-Za-z0-9_-][A-Za-z0-9_\\.-]*@[A-Za-z0-9][A-Za-z0-9\\.]*[A-Za-z0-9]$"; +static const char *mailpatt = "^[A-Za-z0-9_-][A-Za-z0-9_\\.-]*@[A-Za-z0-9][A-Za-z0-9\\.-]*[A-Za-z0-9]$"; static const char *idpatt = "^[_A-Za-z][_A-Za-z0-9]*$"; static const char *intpatt = "^[0-9][0-9]*$"; static const char *hashpatt = "^[A-Fa-f0-9]*$";