# Question about QUERY\_STRING

**URL:** <https://www.ruby-forum.com/t/question-about-query-string/154596>\
**Category:** NGINX\
**Created:** [December 2, 2008, 2:25am UTC](https://www.ruby-forum.com/t/question-about-query-string/154596 "2008-12-02T02:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@ankur](https://www.ruby-forum.com/u/ankur)\
**Post date:** [December 2, 2008, 2:25am UTC](https://www.ruby-forum.com/t/question-about-query-string/154596/1 "2008-12-02T02:25:04Z")

</div>

Hello,  
I have a request that is originally /a/b%26c. It gets rewritten by  
nginx  
as ?i=a&j=b%26c. When this is passed to php-fastcgi using the  
QUERY\_STRING  
directive, it gets sent as i=a&j=b&c. This is incorrect and the  
escaped  
version of the QUERY\_STRING should be used. Could someone let me know  
if  
this is a known issue? I have tried it on both 0.7.24 and 0.6.34.

Thanks,  
-Ankur

---

<div class="post-metadata">

**Author:** ![ankur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@ankur](https://www.ruby-forum.com/u/ankur)\
**Post date:** [December 2, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/question-about-query-string/154596/2 "2008-12-02T16:08:27Z")

</div>

Hello,  
I have a request that is originally /a/b%26c. It gets rewritten by  
nginx  
as ?i=a&j=b%26c. When this is passed to php-fastcgi using the  
QUERY\_STRING  
directive, it gets sent as i=a&j=b&c. This is incorrect and the  
escaped  
version of the QUERY\_STRING should be used. Could someone let me know  
if  
this is a known issue? I have tried it on both 0.7.24 and 0.6.34.

Thanks,  
-Ankur

---

<div class="post-metadata">

**Author:** ![ankur](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@ankur](https://www.ruby-forum.com/u/ankur)\
**Post date:** [December 30, 2008, 3:00am UTC](https://www.ruby-forum.com/t/question-about-query-string/154596/3 "2008-12-30T03:00:25Z")

</div>

Hello,  
I have a request that is originally /a/b%26c. It gets rewritten by  
nginx  
as ?i=a&j=b%26c. When this is passed to php-fastcgi using the  
QUERY\_STRING  
directive, it gets sent as i=a&j=b&c. This is incorrect and the  
escaped  
version of the QUERY\_STRING should be used. Could someone let me know  
if  
this is a known issue? I have tried it on both 0.7.24 and 0.6.34.

Thanks,  
-Ankur
