diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-11 13:26:06 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-11 13:27:49 +0200 |
| commit | 48b171335c213091cdf682c98ad784dc5c8456da (patch) | |
| tree | 2efe6eed953358e777aaa491e67964c5a7f3caf5 | |
| parent | e79e955d93e24a192c9bf94181294d0797e9fded (diff) | |
| download | slcl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
