Keeps img functionality in chat while fixing the other exploit

This commit is contained in:
Citinited
2018-10-09 22:25:58 +01:00
parent f9f5cfbe40
commit 07572d672f

View File

@@ -248,7 +248,7 @@
But I like HTML, so back to no sanitizing.*/
var/message = interpreter.GetVar("$content")
var/regex/bannedTags = new ("(<script|<iframe|<video|<audio|<embed|<svg|<img)", "i")
var/regex/bannedTags = new ("(<script|<iframe|<video|<audio|<embed|<svg)", "i")
if(bannedTags.Find(message)) //uh oh
message_admins("Warning: Current Telecomms script contains banned html. Stripping message.")
log_admin("Warning: Current Telecomms script contains banned html. Stripping message.")