diff options
author | Henrik Friedrichsen <henrik@affekt.org> | 2015-05-18 19:47:57 +0200 |
---|---|---|
committer | Henrik Friedrichsen <henrik@affekt.org> | 2015-05-18 19:47:57 +0200 |
commit | 9a38d2654f6b1c704ec9ab82a4d91cbef7767a48 (patch) | |
tree | 7e3d7fa0950ca08ecd9183c5dfeb7c128e0a2bd2 | |
parent | fbefc9a818a5ed612c0df918598057a8b551cb95 (diff) | |
download | httpd-9a38d2654f6b1c704ec9ab82a4d91cbef7767a48.tar.gz httpd-9a38d2654f6b1c704ec9ab82a4d91cbef7767a48.zip |
correctly set PATH_INFO environment variable
according to RFC 3875 PATH_INFO should either contain a
full path or be empty.
-rw-r--r-- | httpd/server_fcgi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/httpd/server_fcgi.c b/httpd/server_fcgi.c index d0a8800..b627dc3 100644 --- a/httpd/server_fcgi.c +++ b/httpd/server_fcgi.c @@ -210,6 +210,13 @@ server_fcgi(struct httpd *env, struct client *clt) } script[scriptlen] = '\0'; } + else { + if (fcgi_add_param(¶m, "PATH_INFO", "", clt) == -1) { + errstr = "failed to encode param"; + goto fail; + } + } + /* * calculate length of http SCRIPT_NAME: |