summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-08-25 10:00:48 +0000
committerSascha Schumann <sas@php.net>2000-08-25 10:00:48 +0000
commitc6cd319cd47ad95d9401a574c3f7c194428ae036 (patch)
tree2b6a8158f4a8424358c7e0e0bc61c117c74588bb
parent59059711225d2af2ffd5854547ca2cc15d4b1ca0 (diff)
downloadphp-git-c6cd319cd47ad95d9401a574c3f7c194428ae036.tar.gz
Use request_uri as PHP_SELF. decodedurl also includes the query string.
-rw-r--r--sapi/thttpd/thttpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index e79fa10091..d4249232d3 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -111,7 +111,7 @@ static void sapi_thttpd_register_variables(zval *track_vars_array ELS_DC SLS_DC
char buf[BUF_SIZE + 1];
TLS_FETCH();
- php_register_variable("PHP_SELF", TG(hc)->decodedurl, track_vars_array ELS_CC PLS_CC);
+ php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array ELS_CC PLS_CC);
php_register_variable("SERVER_SOFTWARE", SERVER_SOFTWARE, track_vars_array ELS_CC PLS_CC);
php_register_variable("GATEWAY_INTERFACE", "CGI/1.1", track_vars_array ELS_CC PLS_CC);
php_register_variable("REQUEST_METHOD", SG(request_info).request_method, track_vars_array ELS_CC PLS_CC);