changed regex for admin list
This commit is contained in:
parent
47d7a19b3c
commit
10d873cee4
|
@ -324,7 +324,7 @@ class Config {
|
||||||
// returns true if $value has correct format
|
// returns true if $value has correct format
|
||||||
function set_Adminstring($value) {
|
function set_Adminstring($value) {
|
||||||
if (is_string($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;
|
$this->Admins = $value;
|
||||||
}
|
}
|
||||||
else return false;
|
else return false;
|
||||||
|
|
|
@ -396,7 +396,7 @@ class Config {
|
||||||
*/
|
*/
|
||||||
function set_Adminstring($value) {
|
function set_Adminstring($value) {
|
||||||
if (is_string($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;
|
$this->Admins = $value;
|
||||||
}
|
}
|
||||||
else return false;
|
else return false;
|
||||||
|
|
Loading…
Reference in New Issue