diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-03-06 09:50:13 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-03-06 09:50:13 +0000 |
commit | c01130bff03b3a1bf4ec73962fd6a4741d68483e (patch) | |
tree | 59ab5347d2d8e5f1301d8b177d342fb123f3403a /src/tipideed/cgi.c | |
parent | c02cc7dd9985f42e807badefe97c005d8e3534f2 (diff) | |
download | tipidee-c01130bff03b3a1bf4ec73962fd6a4741d68483e.tar.xz |
Fix indexification with infopath for full cgi sites
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/cgi.c')
-rw-r--r-- | src/tipideed/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c index a2554f5..4a7f9f2 100644 --- a/src/tipideed/cgi.c +++ b/src/tipideed/cgi.c @@ -48,7 +48,7 @@ static void addrequesturi (tipidee_rql const *rql, char const *docroot, char con { if (!stralloc_cats(&g.sa, "REQUEST_URI=") || !stralloc_cats(&g.sa, script)) dienomem(rql, docroot) ; - if (infopath) + if (infopath[0]) { if (!stralloc_catb(&g.sa, "/", 1) || !stralloc_cats(&g.sa, infopath)) dienomem(rql, docroot) ; @@ -73,7 +73,7 @@ static inline void modify_env (tipidee_rql const *rql, char const *docroot, tipi } else delenv(rql, docroot, "CONTENT_LENGTH") ; - if (infopath) addenvslash(rql, docroot, "PATH_INFO", infopath) ; + if (infopath[0]) addenvslash(rql, docroot, "PATH_INFO", infopath) ; else delenv(rql, docroot, "PATH_INFO") ; if (rql->uri.query) addenv(rql, docroot, "QUERY_STRING", rql->uri.query) ; else delenv(rql, docroot, "QUERY_STRING") ; |