From: Roland Häder Date: Mon, 8 Nov 2010 02:30:48 +0000 (+0000) Subject: Fixed saving of nickname, a deprecated way was used before isInString() was introduced X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa605a46036192852dbdebfbd493e93d77da2718;p=mailer.git Fixed saving of nickname, a deprecated way was used before isInString() was introduced --- 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