Fix runtime when editing bans introduced by untrustworthy code ocelot. (#62322)

This commit is contained in:
Timberpoes
2021-10-26 01:55:58 +01:00
committed by GitHub
parent 54db469951
commit baa5a48879
+2
View File
@@ -219,6 +219,7 @@
<input type='hidden' name='oldreason' value='[reason]'>
<input type='hidden' name='page' value='[page]'>
<input type='hidden' name='adminkey' value='[admin_key]'>
<input type='hidden' name='role' value='[role]'>
<br>
When ticked, edits here will also affect bans created with matching ckey, IP, CID and time. Use this to edit all role bans which were made at the same time.
"}
@@ -434,6 +435,7 @@
changes += list("Reason" = "[href_list["oldreason"]]<br>to<br>[reason]")
if(!changes.len)
error_state += "No changes were detected."
roles_to_ban += href_list["role"]
else
severity = href_list["radioseverity"]
if(!severity)