aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-11 13:26:06 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-11 13:27:49 +0200
commit48b171335c213091cdf682c98ad784dc5c8456da (patch)
tree2efe6eed953358e777aaa491e67964c5a7f3caf5
parente79e955d93e24a192c9bf94181294d0797e9fded (diff)
downloadslcl-48b171335c213091cdf682c98ad784dc5c8456da.tar.gz
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.
-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;