summaryrefslogtreecommitdiff
path: root/cgi.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-22 20:31:35 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-22 20:32:29 +0100
commitf9dad9ffdd41c00d1fc7420f2f55983c7f6df8bc (patch)
treefa1d4aefea25736e73e078ef9083b25664494c43 /cgi.c
parentd6366570bf706f3970b7f106a1ccd49b584559cf (diff)
cgi: compare the physical path instead of the url to detect quirky urls
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index c4438b0..62be0a3 100644
--- a/cgi.c
+++ b/cgi.c
@@ -103,7 +103,7 @@ static bool check_cgi_path(struct path_info *pi, const char *url)
}
pi->ip = NULL;
- return uh_path_match(conf.cgi_prefix, url);
+ return uh_path_match(conf.cgi_docroot_path, pi->phys);
}
struct dispatch_handler cgi_dispatch = {