mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-28 20:26:28 -05:00
avoid upload error by blanking out hacked grizzco weapons (#61)
This commit is contained in:
7
utils.py
7
utils.py
@@ -105,9 +105,14 @@ def b64d(string):
|
||||
thing_id = base64.b64decode(string).decode('utf-8')
|
||||
thing_id = thing_id.replace("VsStage-", "")
|
||||
thing_id = thing_id.replace("VsMode-", "")
|
||||
thing_id = thing_id.replace("Weapon-", "")
|
||||
thing_id = thing_id.replace("CoopStage-", "")
|
||||
thing_id = thing_id.replace("CoopGrade-", "")
|
||||
|
||||
if "Weapon-" in thing_id:
|
||||
thing_id = thing_id.replace("Weapon-", "")
|
||||
if len(thing_id) == 5 and thing_id[:2] == "20": # grizzco weapon ID from a hacker
|
||||
return ""
|
||||
|
||||
if thing_id[:15] == "VsHistoryDetail" or thing_id[:17] == "CoopHistoryDetail":
|
||||
return thing_id # string
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user