plugins/SpecialAdmin.php
changeset 826 dcf5381ce8ba
parent 825 9d5c04c1414f
child 828 c5bca53b857a
--- a/plugins/SpecialAdmin.php	Sun Jan 25 21:18:05 2009 -0500
+++ b/plugins/SpecialAdmin.php	Sun Jan 25 21:20:14 2009 -0500
@@ -354,10 +354,10 @@
     setConfig('register_tou', RenderMan::preprocess_text($_POST['register_tou'], true, false));
     
     // Account lockout policy
-    if ( preg_match('/^[0-9]+$/', $_POST['lockout_threshold']) )
+    if ( ctype_digit($_POST['lockout_threshold']) )
       setConfig('lockout_threshold', $_POST['lockout_threshold']);
     
-    if ( preg_match('/^[0-9]+$/', $_POST['lockout_duration']) )
+    if ( ctype_digit($_POST['lockout_duration']) )
       setConfig('lockout_duration', $_POST['lockout_duration']);
     
     if ( in_array($_POST['lockout_policy'], array('disable', 'captcha', 'lockout')) )