I have the strangest problem with codeigniter. I have a website that has a search function that displays a userβs request in a URL so that it can save the URL. I make sure the request text went through rawurlencode before I paste it into the url. However, Codeigniter still launches me on the error page when the request contains a character that is not in my allowed_uri_characters configuration.
So, while my browser says / search -results / query /% 22samplequery% 22, I still get an error about using invalid characters.
This is mistake? I have no invalid characters in my url. I have a% sign and some numbers (which are all specifically allowed). This is definitely the allowed_uri_characters parameter, which gives me sadness. If I add a quotation mark to it, it can execute query% 22 without any problems.
And to be clear, the request comes from the form in the form of post-data, then it is encoded in my controller and then redirected to a new page. Permitted originals must not be allowed to be applied in any way before they are encoded.
This drives me crazy, as my only solution at the moment is to open my allowed_ hands for everything under the sun, which is not very safe!
source
share