From 1c2d594c29ccf62caaed5aa929e061c7e4d9d717 Mon Sep 17 00:00:00 2001 From: mrpete Date: Wed, 17 Jan 2007 13:35:46 +0000 Subject: [PATCH] bugfix: disallowed names not tested for properly --- signup.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/signup.php b/signup.php index ef8c74b04..8bb731a90 100644 --- a/signup.php +++ b/signup.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/signup.php,v $ -| $Revision: 1.5 $ -| $Date: 2007-01-07 15:59:41 $ -| $Author: e107steved $ +| $Revision: 1.6 $ +| $Date: 2007-01-17 13:35:46 $ +| $Author: mrpete $ +----------------------------------------------------------------------------+ */ @@ -402,10 +402,12 @@ if (isset($_POST['register'])) $error = TRUE; } +global $db_debug; // Check for disallowed names. - if(isset($pref['signup_disallow_text'])) + if(varsettrue($pref['signup_disallow_text'])) { $tmp = explode(",", $pref['signup_disallow_text']); + if (E107_DEBUG_LEVEL) $db_debug->log('disallowed ('.count($tmp).'), like "'.$tmp[0].'"'); foreach($tmp as $disallow) { if( strstr($_POST['name'], $disallow) || strstr($_POST['loginname'], $disallow) ){