summaryrefslogtreecommitdiff
path: root/src/tipideed/cgi.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-20 15:45:36 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-20 15:45:36 +0000
commit289236dd5a7f05bd5253840fa03d358ca51406b0 (patch)
tree6855910e5b19f44994b3c0ddd44c28b1c0a641a2 /src/tipideed/cgi.c
parent51d0fdce74aeb23ef28336037b2d35aa4c955cee (diff)
downloadtipidee-289236dd5a7f05bd5253840fa03d358ca51406b0.tar.xz
Fix small modifier string bug.
Build with new skalibs to avoid env_merge() problems. Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/cgi.c')
-rw-r--r--src/tipideed/cgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c
index 14da139..a2554f5 100644
--- a/src/tipideed/cgi.c
+++ b/src/tipideed/cgi.c
@@ -381,6 +381,7 @@ int respond_cgi (tipidee_rql *rql, char const *docroot, char const *fn, size_t d
char const *envp[envmax] ;
modify_env(rql, docroot, hdr, bodylen, fn + docrootlen, infopath) ;
env_merge(envp, envmax, (char const *const *)environ, g.envlen, g.sa.s + g.cwdlen + 1, g.sa.len - (g.cwdlen+1)) ;
+
g.sa.len = sabase ;
return ra->flags & TIPIDEE_RA_FLAG_NPH ?
do_nph(rql, docroot, argv, envp, body, bodylen) :