Forum Discussion
imac_105647
Nimbostratus
Jun 25, 2010Encoded ampersand problem
Hello,
I am seeing an issue where an ampersand in the URI is encoded as & semi-colon paramname, so ASM thinks that the parameter name is amp semi-colon paramname and throws a violation on having the semi-colon in there.(You need to replace space semi-colon space with just a semi-colon to see what I mean as the forum won't allow me to write exactly the string I see.)
Is there are switch I can throw that will get the ASM to decode the & semi-colon to just &?
Thanks, Ian
1 Reply
- hoolio
Cirrostratus
Hi Ian,
This is probably a result of the web app incorrectly double HTML encoding the URL that the client accessed. The idea fix is to change the app to only HTML encode the URL once. Else, you could use an iRule to do a string map replacement of & amp ; to &:when HTTP_REQUEST { Check if URI has HTML encoded ampersands if {[HTTP::query] contains "amp;"}{ Set the URI to the path plus query string with & replaced with & in the query string HTTP::uri "[HTTP::path]?[string map {& &} [HTTP::query]] } }
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
