shlant
CDCloudflare Developers
•Created by shlant on 8/22/2024 in #general-help
How to have bare % sign properly encoded
I have a SOLR search bar on my site. When I search for
100% wolf
it generates a url that looks like this:
https://www.example.org/search/100%%20wolf
This then causes cloudflare to throw a 400 Bad Request because even though the space was properly converted to %20
, the % was not converted to %25
.
1. Is this something cloudflare should be handling? or my site? Is CF converting the space but not the % or is it my site that is generating that?
2. Is there a fix I can implement on the CF side other than using a Worker? Or should this be fixed on my side?3 replies