This commit is contained in:
Abdulrahman
2019-03-03 00:26:59 +03:00
parent 3e3d974890
commit a9f481a688
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ return array(
'VERTY_CODE' => 'كود الأمان',
'NOTE_CODE' => 'ادخل الأحرف الموجود في الصورة بالشكل الصحيح مرتبة بشكل دقيق.',
'WRONG_EMAIL' => 'بريد خاطيء',
'WRONG_NAME' => 'الاسم يجب أن يكون بين 4 احرف و 25 حرف!.',
'WRONG_NAME' => 'الاسم يجب أن يكون بين 4 احرف و 25 حرف وبدون مسافات أو أحرف خاصة (فقط _- مسموحة)!.',
#'WRONG_LINK' => 'رابط خاطيء..',
'EXIST_NAME' => 'الاسم موجود مسبقاً',
'EXIST_EMAIL' => 'البريد موجود مسبقاً',

View File

@@ -42,7 +42,7 @@ return array(
'EMAIL' => 'Email address',
'VERTY_CODE' => 'Security code',
'WRONG_EMAIL' => 'Incorrect email address!',
'WRONG_NAME' => 'The username must be 4 to 25 characters!',
'WRONG_NAME' => 'The username must be 4 to 25 characters, and without spaces or special chars (only _- are allowed)!',
'EXIST_NAME' => 'Someone has already registered with this username!',
'EXIST_EMAIL' => 'Someone with this email address has already registered!',
'WRONG_VERTY_CODE' => 'Incorrect security code!',

View File

@@ -205,7 +205,7 @@ switch (g('go'))
{
$ERRORS['lmail'] = $lang['WRONG_EMAIL'];
}
if (strlen(trim(p('lname'))) < 3 || strlen(trim(p('lname'))) > 50)
if (strlen(trim(p('lname'))) < 3 || strlen(trim(p('lname'))) > 50 || preg_match('/[^\p{L}_-]/u', p('lname')))
{
$ERRORS['lname'] = $lang['WRONG_NAME'];
}