1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 21:43:14 +02:00

Fix crash in webserver

This commit is contained in:
Bram Matthys
2022-06-21 17:56:25 +02:00
parent 7c8918e22d
commit faffe7c9a8
+3
View File
@@ -388,6 +388,9 @@ int webserver_handle_request_header(Client *client, const char *readbuf, int *le
r;
r = webserver_handshake_helper(NULL, 0, &key, &value, &lastloc, &end_of_request))
{
if (BadPtr(value))
continue; /* skip empty values */
if (!strcasecmp(key, "REQUEST"))
{
safe_strdup(WEB(client)->uri, value);