From e8591b3f8ca8a95bb3c36dafb5ac0928eb234bf0 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Fri, 21 Jul 2017 13:16:43 -0700 Subject: [PATCH] Makes the paranoid sanitization sufficiently non-paranoid --- code/__HELPERS/text.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm index 81f44db0e45..4f9c08a9dc5 100644 --- a/code/__HELPERS/text.dm +++ b/code/__HELPERS/text.dm @@ -60,7 +60,7 @@ return html_encode(sanitize_simple(t,repl_chars)) /proc/paranoid_sanitize(t) - var/regex/alphanum_only = regex("\[^a-zA-Z0-9# ]", "g") + var/regex/alphanum_only = regex("\[^a-zA-Z0-9# ,.?!:;()]", "g") return alphanum_only.Replace(t, "#") //Runs sanitize and strip_html_simple