diff --git a/lam-0.4/lib/config.inc b/lam-0.4/lib/config.inc index 4e58c9a4..4e685889 100644 --- a/lam-0.4/lib/config.inc +++ b/lam-0.4/lib/config.inc @@ -324,7 +324,7 @@ class Config { // returns true if $value has correct format function set_Adminstring($value) { if (is_string($value) && - eregi("^[a-z0-9\\-]+=[a-z0-9\\-]+(,[a-z0-9\\-]+=[a-z0-9 \\-]+)+(;[a-z0-9\\-]+=[a-z0-9\\-]+(,[a-z0-9\\-]+=[a-z0-9 \\-]+)+)*$", $value)) { + eregi("^[^;]+(;[^;]+)*$", $value)) { $this->Admins = $value; } else return false; diff --git a/lam/lib/config.inc b/lam/lib/config.inc index c6530fc4..5d41f621 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -396,7 +396,7 @@ class Config { */ function set_Adminstring($value) { if (is_string($value) && - eregi("^[a-z0-9\\-]+=[a-z0-9\\-]+(,[a-z0-9\\-]+=[a-z0-9 \\-]+)+(;[a-z0-9\\-]+=[a-z0-9\\-]+(,[a-z0-9\\-]+=[a-z0-9 \\-]+)+)*$", $value)) { + eregi("^[^;]+(;[^;]+)*$", $value)) { $this->Admins = $value; } else return false;