From d34468e787d27639113f201dbb98492729d14d84 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 5 Jan 2004 17:23:49 +0000 Subject: [PATCH] syntax of list attributes is now less strict --- lam-0.4/lib/config.inc | 6 +++--- lam/lib/config.inc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lam-0.4/lib/config.inc b/lam-0.4/lib/config.inc index 6a4d5e2f..687d92c7 100644 --- a/lam-0.4/lib/config.inc +++ b/lam-0.4/lib/config.inc @@ -503,7 +503,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_userlistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->userlistAttributes = $value; } else return false; @@ -519,7 +519,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_grouplistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->grouplistAttributes = $value; } else return false; @@ -535,7 +535,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_hostlistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->hostlistAttributes = $value; } else return false; diff --git a/lam/lib/config.inc b/lam/lib/config.inc index 6a4d5e2f..687d92c7 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -503,7 +503,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_userlistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->userlistAttributes = $value; } else return false; @@ -519,7 +519,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_grouplistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->grouplistAttributes = $value; } else return false; @@ -535,7 +535,7 @@ class Config { // $value: new attribute string // returns true if $value has correct format function set_hostlistAttributes($value) { - if (is_string($value) && eregi("^((#[a-z]+)|([a-z]*:[a-z_\\-]+))(;((#[a-z]+)|([a-z]*:[a-z_\\-]+)))*$", $value)) { + if (is_string($value) && eregi("^((#[^:;]+)|([^:;]*:[^:;]+))(;((#[^:;]+)|([^:;]*:[^:;]+)))*$", $value)) { $this->hostlistAttributes = $value; } else return false;