mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Fix malicious/bad JS exploits
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
//SECURITY//
|
||||
////////////
|
||||
var/next_allowed_topic_time = 10
|
||||
var/info_sent = 0
|
||||
// comment out the line below when debugging locally to enable the options & messages menu
|
||||
//control_freak = 1
|
||||
|
||||
|
||||
@@ -25,7 +25,12 @@
|
||||
return
|
||||
|
||||
if (href_list["EMERG"] && href_list["EMERG"] == "action")
|
||||
handle_connection_info(src, href_list["data"])
|
||||
if (!info_sent)
|
||||
handle_connection_info(src, href_list["data"])
|
||||
info_sent = 1
|
||||
else
|
||||
server_greeting.close_window(src, "Your greeting window has malfunctioned and has been shut down.")
|
||||
|
||||
return
|
||||
|
||||
//Reduces spamming of links by dropping calls that happen during the delay period
|
||||
|
||||
Reference in New Issue
Block a user