Warning fix

This commit is contained in:
Lauri Kasanen 2024-09-24 15:04:24 +03:00
parent 7659765116
commit 0cc4a4f128
No known key found for this signature in database

View File

@ -927,7 +927,7 @@ static void servefile(ws_ctx_t *ws_ctx, const char *in, const char * const user,
// in case they percent-encoded dots // in case they percent-encoded dots
if (strstr(buf, "../")) { if (strstr(buf, "../")) {
handler_msg("Attempted dir traversal attack, rejecting\n", len); handler_msg("Attempted dir traversal attack, rejecting\n");
goto nope; goto nope;
} }