Forum Discussion
Deb_Allen_18
Jul 26, 2006Historic F5 Account
findclass match on empty string
We have this code: findclass [findstr [HTTP::uri] "FeReqHdlg=" 10 "&"] $::FEserverClass When the findstr command doesn't find a match (parameter is not present in URI), an empty string is returned (...
Deb_Allen_18
Aug 03, 2006Historic F5 Account
9.2.3 is the version my customer is using, and I have no insight into what other versions may be affected.
I have opened a case, waiting for a CR , will post it when I get it so you can watch the release notes for the fix.
In the meantime, you just need to validate any variable value you want to push into findclass. My customer coded around the issue by checking for null string and replacing with "-":
set FEHandler [findstr [HTTP::uri] "FeReqHdlg=" 10 "&"]
if { [string length $FEHandler] == 0} {
set FEHandler "-"
}
...[findclass $FEHandler $::FEserverClass]...
/deb
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