Welcome! Log In Create A New Profile


[PATCH] Accept percents in urls

All files from this thread

File Name File Size   Posted by Date  
nginx-0.8.49-uri_percent.patch 1.1 KB open | download Matthieu Tourne 08/11/2010 Read message
Matthieu Tourne
August 11, 2010 08:20PM
Hi all,

I need to be able to accept single percents '%' in urls, even if
they're not part of a valid encoded url.
I know it's probably not ok in the rfc, but some of the websites we
proxy do that, and I have no control over it.
I would like to forward the request as-is, instead of returning a '400
Bad Request'.

Here is a patch that does just that (patch -p1 <
nginx-0.8.49-uri_percent.patch to apply it).
It seems to work, but I'm not exactly sure about the consequences.
I'm wondering if that could be dangerous, and also if r->quoted_uri
should be set to 0, if all the percents encountered are not part of a
valid url encoding.

Thank you.

Matthieu Tourne
nginx mailing list
open | download - nginx-0.8.49-uri_percent.patch (1.1 KB)
Subject Author Posted

[PATCH] Accept percents in urls Attachments

Matthieu Tourne August 11, 2010 08:20PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready