1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00

fix email pattern

This commit is contained in:
Mzhelskiy Maxim 2010-02-06 17:04:29 +00:00
parent 505012d2c2
commit e96578938d

View file

@ -170,7 +170,7 @@ function func_check($sValue,$sParam,$iMin=1,$iMax=100) {
{
case 'id': if (preg_match("/^\d{".$iMin.','.$iMax."}$/",$sValue)){ return true; } break;
case 'float': if (preg_match("/^[\-]?\d+[\.]?\d*$/",$sValue)){ return true; } break;
case 'mail': if (preg_match("/^[\da-z\_\-\.]+@[\da-z_\-\.]+\.[a-z]{2,5}$/i",$sValue)){ return true; } break;
case 'mail': if (preg_match("/^[\da-z\_\-\.\+]+@[\da-z_\-\.]+\.[a-z]{2,5}$/i",$sValue)){ return true; } break;
case 'login': if (preg_match("/^[\da-z\_\-]{".$iMin.','.$iMax."}$/i",$sValue)){ return true; } break;
case 'md5': if (preg_match("/^[\da-z]{32}$/i",$sValue)){ return true; } break;
case 'password': if (mb_strlen($sValue,'UTF-8')>=$iMin){ return true; } break;