Matt_Breedlove_
Aug 08, 2011Nimbostratus
assistance with literal question mark in switch
Hi All,
In this switch, it allows through a few URI prefixes with a wildcard, but then there is a URI that is like this
/?g
or like this
/?w
any single character following the literal question mark
Is this the right syntax to use? Thanks in advance
M
when HTTP_REQUEST {
switch -glob [URI::decode [string tolower [HTTP::uri]]] {
/ab* { return }
/cd* { return }
/ef* { return }
/\\?? { return }
default {
discard
}
}
discard
}