From b5eacbbc87cce0006a894788c98bfcf770cbd9ad Mon Sep 17 00:00:00 2001 From: AnturK Date: Tue, 18 Jun 2019 09:08:59 +0200 Subject: [PATCH] Fix another version of the asset exploit (#44570) --- code/modules/client/client_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index aa696c638c1..89b599ca177 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -38,7 +38,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( // asset_cache if(href_list["asset_cache_confirm_arrival"]) - var/job = text2num(href_list["asset_cache_confirm_arrival"]) + var/job = round(text2num(href_list["asset_cache_confirm_arrival"])) //because we skip the limiter, we have to make sure this is a valid arrival and not somebody tricking us // into letting append to a list without limit. if (job > 0 && job <= last_asset_job && !(job in completed_asset_jobs))