Is there a bug in QUERY_STRING or try_files?

seaprince nginx-forum at nginx.us
Fri Dec 25 10:58:21 MSK 2009


I have written a php code to solve the problem.

<?php
$uri = $_SERVER['REQUEST_URI'];
$qs  = $_SERVER['QUERY_STRING'];
$uri = strtok($uri, '?');
$qs = $_SERVER['QUERY_STRING'] = strtok('?');
parse_str($qs, $qs_arr);
$_REQUEST = array_merge($_REQUEST, $qs_arr);


My blog post here: http://seaprince.cn/nginx-query_string-bug/

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,33365,33366#msg-33366




More information about the nginx mailing list