# Accept percents in urls

**URL:** <https://www.ruby-forum.com/t/accept-percents-in-urls/193138>\
**Category:** NGINX\
**Created:** [August 12, 2010, 2:15am UTC](https://www.ruby-forum.com/t/accept-percents-in-urls/193138 "2010-08-12T02:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthieu\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@Matthieu\_T](https://www.ruby-forum.com/u/Matthieu_T)\
**Post date:** [August 12, 2010, 2:15am UTC](https://www.ruby-forum.com/t/accept-percents-in-urls/193138/1 "2010-08-12T02:15:10Z")

</div>

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.
