--- 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')) )