mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
Makes the paranoid sanitization sufficiently non-paranoid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user