From 10f1a1744feb7784c84bb92b0ac252e9eb10a2ac Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Fri, 5 Jun 2009 11:47:04 +0000 Subject: [PATCH] allow dot in login git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@526 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/operator/operator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/operator.php b/src/messenger/webim/operator/operator.php index ca50b4a5..5f871f69 100644 --- a/src/messenger/webim/operator/operator.php +++ b/src/messenger/webim/operator/operator.php @@ -38,7 +38,7 @@ if( isset($_POST['login']) && isset($_POST['password']) ) { if( !$login ) { $errors[] = no_field("form.field.login"); - } else if( !preg_match( "/^[\w_]+$/",$login) ) { + } else if( !preg_match( "/^[\w_\.]+$/",$login) ) { $errors[] = getlocal("page_agent.error.wrong_login"); }