commit 05748e49fed64039616d4bb06a7e09388b0f5467 from: Omar Polo date: Sun Jan 24 09:15:05 2021 UTC chdir to the vhost root before exec'ing the CGI script commit - e7a2a99b5acfd15f0a0bba63344ec028a36700b3 commit + 05748e49fed64039616d4bb06a7e09388b0f5467 blob - b9a9f7a25fde3e5642c93f9b13f37e9fc57fb148 blob + 7979949e74738e5efd4e29fa727af506240c311f --- ex.c +++ ex.c @@ -236,6 +236,8 @@ launch_cgi(const char *spath, const char *relpath, con safe_setenv("TLS_CLIENT_ISSUER", cissuer); safe_setenv("TLS_CLIENT_HASH", chash); } + + fchdir(vhost->dir); execvp(ex, argv); goto childerr;