From fa605a46036192852dbdebfbd493e93d77da2718 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 8 Nov 2010 02:30:48 +0000 Subject: [PATCH] Fixed saving of nickname, a deprecated way was used before isInString() was introduced --- inc/modules/member/what-nickname.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index d84f555aff..6290805fbe 100644 --- a/inc/modules/member/what-nickname.php +++ b/inc/modules/member/what-nickname.php @@ -56,7 +56,7 @@ if (isFormSent()) { // Nickname was submitted so let's check if it is not already in use if (isPostRequestParameterSet('nickname')) { // Check if nickname is valid - if (isInString('[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}', postRequestParameter('nickname'))) { + if (preg_match('/[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}/', postRequestParameter('nickname'), $array)) { // Entered nickname is valid? $isValid = ($array[0] == postRequestParameter('nickname')); } // END - if -- 2.39.5