Forum Discussion
smp_86112
Sep 08, 2011Cirrostratus
Unsanitized URI breaks TCL
I have an iRule which relies on a switch statement:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
(do stuff)
}
}
It appears that some requests result in the error in /var/log/ltm: ...
hooleylist
Sep 08, 2011Cirrostratus
You can avoid that TCL error by using two hyphens to terminate the switch flag:
switch -glob -- [HTTP::uri] {
That will avoid the TCL runtime error and TCP reset. The request still looks like garbage though so don't expect it to match a non-default switch case.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects