2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

SV_ProcessFile: Ignore customization file uploads if upload is disabled

This commit is contained in:
s1lentq 2024-10-24 02:28:47 +07:00
parent b29740c19e
commit fe184a82e0

View File

@ -3783,6 +3783,12 @@ void SV_ProcessFile(client_t *cl, char *filename)
return;
}
if (!sv_allow_upload.value)
{
Con_NetPrintf("Ignoring incoming customization file upload of %s from %s\n", filename, NET_AdrToString(cl->netchan.remote_address));
return;
}
COM_HexConvert(filename + 4, 32, md5);
resource = cl->resourcesneeded.pNext;
bFound = FALSE;