summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 609183ed..3d448a16 100644
--- a/cgi.c
+++ b/cgi.c
@@ -853,7 +853,7 @@ pg_search(const struct req *req, char *path)
struct opts opt;
struct expr *expr;
- if (req->q.manroot < 0) {
+ if (req->q.manroot < 0 || 0 == req->psz) {
resp_search(NULL, 0, (void *)req);
return;
}