diff options
author | Michael Hamann <michael@content-space.de> | 2010-11-30 18:37:04 +0100 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2010-11-30 18:46:59 +0100 |
commit | 68a535905a1a45108d0a11ca1c8a0b78b50cddba (patch) | |
tree | 5d20e6842fb35566f07607f3e7f3aad393737893 | |
parent | 359fab8b2f7d0847ef0cf9b669e6c8ffb0687525 (diff) | |
download | rpg-68a535905a1a45108d0a11ca1c8a0b78b50cddba.tar.gz rpg-68a535905a1a45108d0a11ca1c8a0b78b50cddba.tar.bz2 |
Allow spaces in numeric configuration values
-rw-r--r-- | lib/plugins/config/settings/config.class.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 252bc79a9..887f373bd 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -616,8 +616,7 @@ if (!class_exists('setting_numeric')) { // This allows for many PHP syntax errors... // var $_pattern = '/^[-+\/*0-9 ]*$/'; // much more restrictive, but should eliminate syntax errors. - var $_pattern = '/^[-]?[0-9]+(?:[-+*][0-9]+)*$/'; - //FIXME - make the numeric error checking better. + var $_pattern = '/^[-+]? *[0-9]+ *(?:[-+*] *[0-9]+ *)*$/'; var $_min = null; var $_max = null; |