mirror of
https://git.sr.ht/~sircmpwn/gmnisrv
synced 2025-02-02 15:08:11 -05:00
return false on request_validate errors
This will report proper errors to clients rather than continuing on with request processing.
This commit is contained in:
parent
cff1f71f1a
commit
9d17ce46b0
@ -247,7 +247,10 @@ request_validate(struct gmnisrv_client *client, char **path)
|
||||
// . to prevent directory traversal without additional code.
|
||||
*path = part;
|
||||
|
||||
exit:
|
||||
curl_url_cleanup(url);
|
||||
return true;
|
||||
|
||||
exit:
|
||||
curl_url_cleanup(url);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user