Re: $_SERVER['QUERY_STRING'] plus-signs and whitespace

2013-12-11 Thread smallfish
'+' in url equla ' ' (base64). if value has '+', you must encode it. example: $a = "1+1"; echo urlencode($a); the correct url is: "http://x.com/?test=1%2B1"; -- smallfish http://chenxiaoyu.org On Wed, Dec 11, 2013 at 6:19 PM, basti wrote: > Hello, > I have the following Problem with Nginx 1

$_SERVER['QUERY_STRING'] plus-signs and whitespace

2013-12-11 Thread basti
Hello, I have the following Problem with Nginx 1.2.1-2.2 running on 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux A String like $_SERVER['QUERY_STRING'] = test=1+2 will get $_GET['test'] = 1 2 I have found the following: |$_GET||[||"q"||] = ||strtr||(||$_GET||[||"q"||], ||"+"||, ||" "||);