(RADIATOR) Suggestion for better Define(Formatted)GlobalVar

r.c.w.besseling at kpn.com r.c.w.besseling at kpn.com
Tue Feb 5 09:07:37 CST 2002


Hugh,

I need to have the possibility to have spaces within the value of a
GlobalVar:
	'DefineFormattedGlobalVar  variable "value with spaces"' or
	'DefineFormattedGlobalVar  variable value with spaces'

However, in the current code it is not possible to have a space within the
value of a GlobalVar, because of the way the line is parsed by Radiator in
Radius::ServerConfig.pm line 192 and 198.
	my($name, $v) = split(/\s+/, $value);
The intended value of my GlobalVar is also splitted on the space and only
the first part is returned.

My suggestion is to add a limit to the split():
	my($name, $v) = split(/\s+/, $value, 2);

As far as I can see this should work and give no problems. Do you agree and
can you add this patch in the next release?

groeten van mij...
-- 
Ruud Besseling
Product Specialist
KPN - Internet Operator - Development TI

tel.:   (070 - 45) 11081
mail:  r.c.w.besseling at .kpn.com

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list