mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-21 13:12:40 +01:00
sanitize() refactor: fourth pass
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
if(mode)
|
||||
user << "<span class='notice'>You turn on \the [src].</span>"
|
||||
//Now let them chose the text.
|
||||
var/str = copytext(reject_bad_text(input(user,"Label text?","Set label","")),1,MAX_NAME_LEN)
|
||||
var/str = sanitizeSafe(input(user,"Label text?","Set label",""), MAX_NAME_LEN)
|
||||
if(!str || !length(str))
|
||||
user << "<span class='notice'>Invalid text.</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user