diff options
author | Reyk Floeter <reyk@esdenera.com> | 2015-07-17 22:32:38 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2015-07-17 22:32:38 +0200 |
commit | 661372341362a7a64967b9c29bf6e636fc674319 (patch) | |
tree | cc8f94e8eec4ba68a241f0dd1ebcc9e1e2197f19 | |
parent | e6ae7da638a3847eb0f4a0926bf213c1ee359c08 (diff) | |
parent | f5403fc57b13b2e66acac3980d9a4870114685af (diff) | |
download | httpd-661372341362a7a64967b9c29bf6e636fc674319.tar.gz httpd-661372341362a7a64967b9c29bf6e636fc674319.zip |
Merge branch 'hrkfdn-master'
-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 c91c98b..79f382b 100644 --- a/httpd/server_fcgi.c +++ b/httpd/server_fcgi.c @@ -212,8 +212,15 @@ server_fcgi(struct httpd *env, struct client *clt) goto fail; } script[scriptlen] = '\0'; + } else { + /* RFC 3875 mandates that PATH_INFO is empty if not set */ + if (fcgi_add_param(¶m, "PATH_INFO", "", clt) == -1) { + errstr = "failed to encode param"; + goto fail; + } } + /* * calculate length of http SCRIPT_NAME: * add length of stripped prefix, |