aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-07-17 22:32:38 +0200
committerReyk Floeter <reyk@esdenera.com>2015-07-17 22:32:38 +0200
commit661372341362a7a64967b9c29bf6e636fc674319 (patch)
treecc8f94e8eec4ba68a241f0dd1ebcc9e1e2197f19
parente6ae7da638a3847eb0f4a0926bf213c1ee359c08 (diff)
parentf5403fc57b13b2e66acac3980d9a4870114685af (diff)
downloadhttpd-661372341362a7a64967b9c29bf6e636fc674319.tar.gz
httpd-661372341362a7a64967b9c29bf6e636fc674319.zip
Merge branch 'hrkfdn-master'
-rw-r--r--httpd/server_fcgi.c7
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(&param, "PATH_INFO", "", clt) == -1) {
+ errstr = "failed to encode param";
+ goto fail;
+ }
}
+
/*
* calculate length of http SCRIPT_NAME:
* add length of stripped prefix,