uni
Sep 13, 2007Altostratus
Preventing interpreting variable as TCL
I have an iRule which is parsing the each field in a URI query. I am getting an occasional problem with a TCL error if $parameter starts with "-", as the interpreter assumes it is an option to the split command. Is there some sort of quoting I can use to prevent this?
switch [string tolower [lindex [split $parameter "="] 0]] {