From 48b171335c213091cdf682c98ad784dc5c8456da Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 11 Jul 2023 13:26:06 +0200 Subject: main.c: Use path_isrel for search terms Search terms cannot use the same strict rules used for filenames or directory names, as otherwise examples such as "*folder*/*IMG*" would not work. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3