mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 20:11:56 +00:00
[MIRROR] Fix runtime when editing bans introduced by untrustworthy code ocelot. [MDB IGNORE] (#9046)
* Fix runtime when editing bans introduced by untrustworthy code ocelot. (#62322) * Fix runtime when editing bans introduced by untrustworthy code ocelot. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -251,6 +251,7 @@
|
||||
<input type='hidden' name='old_globalban' value='[global_ban]'>
|
||||
<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.
|
||||
"}
|
||||
@@ -485,6 +486,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)
|
||||
|
||||
Reference in New Issue
Block a user