syntax of list attributes is now less strict
This commit is contained in:
		
							parent
							
								
									2ba947e01d
								
							
						
					
					
						commit
						d34468e787
					
				| 
						 | 
					@ -503,7 +503,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_userlistAttributes($value) {
 | 
						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;
 | 
								$this->userlistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					@ -519,7 +519,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_grouplistAttributes($value) {
 | 
						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;
 | 
								$this->grouplistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					@ -535,7 +535,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_hostlistAttributes($value) {
 | 
						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;
 | 
								$this->hostlistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -503,7 +503,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_userlistAttributes($value) {
 | 
						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;
 | 
								$this->userlistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					@ -519,7 +519,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_grouplistAttributes($value) {
 | 
						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;
 | 
								$this->grouplistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					@ -535,7 +535,7 @@ class Config {
 | 
				
			||||||
	// $value: new attribute string
 | 
						// $value: new attribute string
 | 
				
			||||||
	// returns true if $value has correct format
 | 
						// returns true if $value has correct format
 | 
				
			||||||
	function set_hostlistAttributes($value) {
 | 
						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;
 | 
								$this->hostlistAttributes = $value;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else return false;
 | 
							else return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue