diff options
author | Omar Polo <op@omarpolo.com> | 2021-05-15 10:31:43 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-05-15 10:31:43 +0000 |
commit | 1feaf2a618ee1c4771fee80ced7acf31fe40fdae (patch) | |
tree | a5953a40af0f3c434a788248aacc0ede3b718818 /ex.c | |
parent | 91b9f2a8f9d39f2fb842c33049d966777027e5f4 (diff) |
use the correct document root
pass the correct loc_off to the executor, so the various variables
that depends on the matched location (like DOCUMENT_ROOT) are computed
correctly.
Diffstat (limited to 'ex.c')
-rw-r--r-- | ex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -290,7 +290,7 @@ handle_imsg_cgi_req(struct imsgbuf *ibuf, struct imsg *imsg, size_t datalen) if ((h = host_nth(req.host_off)) == NULL) abort(); - if ((l = loc_nth(h, req.host_off)) == NULL) + if ((l = loc_nth(h, req.loc_off)) == NULL) abort(); fd = launch_cgi(&iri, &req, h, l); |