Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Переменные окружения се рвера в url-decoded формате
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Переменные окружения се рвера в url-decoded формате
- From: "locojohn" <nginx-forum@xxxxxxxx>
- Date: Mon, 11 Jul 2011 13:05:54 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=KWaO4QQ2jNQIvvuVHN9+2O+xjnt0T6iH9J2Z+07fZcY=; b=ne5UAcPxVLH0YX33DdOq57J/MH0okwL3AYgXLYkDtLdzDlt4vV4Vt27OrsjWoSzWFUsWasfcChpyFie5FKIRLp3gQxbddySSF9r4Nmiz/wRw5H6/449EcP6lq1S0ItDj;
- In-reply-to: <353361310124645@xxxxxxxxxxxxxxx>
- References: <353361310124645@xxxxxxxxxxxxxxx>
Denis F. Latypoff Wrote:
-------------------------------------------------------
> > Как именно получается
> PATH_INFO ? Если rewrite/set,
> > то кодируется. Нужно так:
> >
> - location ~ \.php(<?PATH_INFO>/.+)$ {
> + location ~ \.php(?<PATH_INFO>/.+)$ {
> > ...
> - fastcgi_param PATH_INFO
> $path_info;
> + fastcgi_param PATH_INFO
> $PATH_INFO;
> > }
location ~ ^(\/index\.php|.+\.php)(?<PATH_INFO>[^?]*)$ {
fastcgi_param PATH_INFO $PATH_INFO;
...
}
результат обращения к
[code]http://www.mysite.com/phpinfo.php/test%20pathinfo%20with%20spaces[/code],
где phpinfo.php script распечатывает значения
переменных:
[...]
_SERVER["PATH_INFO"] /test%252520pathinfo%252520with%252520spaces
[...]
Всё равно енкодируется....
Андрей
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,212010,212215#msg-212215
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|