mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	fixed bug in xcatws.cgi handling attr values with = in it
This commit is contained in:
		@@ -1414,7 +1414,7 @@ sub defout {
 | 
			
		||||
            }
 | 
			
		||||
            else {      # just an attribute of the current node
 | 
			
		||||
                if (! $nodename) { error('improperly formatted lsdef output from xcatd', $STATUS_TEAPOT); }
 | 
			
		||||
                my ($attr, $val) = $l =~ /^\s*(\S+)=(.*)$/;
 | 
			
		||||
                my ($attr, $val) = $l =~ /^\s*(\S+?)=(.*)$/;
 | 
			
		||||
                if (!defined($attr)) { error('improperly formatted lsdef output from xcatd', $STATUS_TEAPOT); }
 | 
			
		||||
                $json->{$nodename}->{$attr} = $val;
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user