// 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