From 2fac378bf615d54b83dcde89c870045f41faaf16 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Thu, 20 Jul 2017 12:01:43 -0700 Subject: [PATCH] Adds spaces to recognized characters for paranoid sanitize --- 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 a891ad36a43..81f44db0e45 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