aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,