]> git.mxchange.org Git - mailer.git/commitdiff
Fixed saving of nickname, a deprecated way was used before isInString() was introduced
authorRoland Häder <roland@mxchange.org>
Mon, 8 Nov 2010 02:30:48 +0000 (02:30 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 8 Nov 2010 02:30:48 +0000 (02:30 +0000)
inc/modules/member/what-nickname.php

index d84f555aff9bfcd053ebee59d3b352937236c653..6290805fbe3faa35857c52d676d796e47f094c1e 100644 (file)
@@ -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