jmartineau9_400
Jul 11, 2013Nimbostratus
set string to lower case not working for query
I have the iRule below, and I am trying to match on keywords within a query to redirect users to a splash page, but the lowercase conversion is not working. Can someone tell me what may be wrong?
when HTTP_REQUEST {
HTTP::query [string tolower [HTTP::query]]
if {[HTTP::uri] contains "search/results.aspx" && ([HTTP::uri] contains "password" || [HTTP::uri] contains "pwd" || [HTTP::uri] contains "user" || [HTTP::uri] contains "usr" || [HTTP::uri] contains "passwd")
}
{
HTTP::redirect ""
}
}