aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 26cdadc..b75d556 100644
--- a/main.c
+++ b/main.c
@@ -570,7 +570,7 @@ static int check_search_input(const struct http_payload *const p,
*f = page_bad_request;
goto end;
}
- else if (filename_invalid(tres))
+ else if (path_isrel(tres))
{
fprintf(stderr, "%s: invalid resource %s\n", __func__, tres);
ret = 1;