commit - 24a2826aba4cf5e99c0e9ce87dccbd23d1b3862e
commit + bc0cdda132594ebe68c239990867d8e9a73af778
blob - 1cef5102d35ecac0af5485462ce1c28a4c66250a
blob + 4f950c38b8d4c9978a1fe92cc44aecade142422c
--- gotd/parse.y
+++ gotd/parse.y
s = p + 3;
p = strstr(s, "/");
- if (p == NULL || strlen(p) == 1) {
+ if (p == NULL) {
err = got_error(GOT_ERR_PARSE_URI);
goto done;
}
err = got_error_from_errno("strdup");
goto done;
}
- got_path_strip_trailing_slashes(*request_path);
if ((*request_path)[0] == '\0') {
err = got_error(GOT_ERR_PARSE_URI);
goto done;