Skip to content

Commit

Permalink
Added _volas_ fix for sanitize_simple infinite loop regarding non sta…
Browse files Browse the repository at this point in the history
…ndard character stripping
  • Loading branch information
Menshin committed Feb 1, 2015
1 parent e5be04e commit c9ffb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/__HELPERS/text.dm
Expand Up @@ -37,12 +37,12 @@
return t

//Removes a few problematic characters
/proc/sanitize_simple(var/t,var/list/repl_chars = list("\n"="#","\t"="#",""=""))
/proc/sanitize_simple(var/t,var/list/repl_chars = list("\n"="#","\t"="#"))
for(var/char in repl_chars)
var/index = findtext(t, char)
while(index)
t = copytext(t, 1, index) + repl_chars[char] + copytext(t, index+1)
index = findtext(t, char)
index = findtext(t, char, index+1)
return t

//Runs byond's sanitization proc along-side sanitize_simple
Expand Down

0 comments on commit c9ffb2e

Please sign in to comment.