diff options
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -821,7 +821,7 @@ static int share(const struct http_payload *const p, const char *const path = forms->value, *const username = p->cookie.field; struct stat sb; - if (path_invalid(path)) + if (path_invalid(path) || *path != '/') { fprintf(stderr, "%s: invalid path %s\n", __func__, path); ret = page_bad_request(r); |
