changed regex for admin list

This commit is contained in:
Roland Gruber 2004-08-18 19:20:29 +00:00
parent 47d7a19b3c
commit 10d873cee4
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;