mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Encode changes (#11301)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e6a4639d0
commit
4e2361f8df
@@ -163,7 +163,7 @@
|
||||
if((CLUMSY in usr.mutations) && prob(50))
|
||||
to_chat(usr, span_warning("You cut yourself on the paper."))
|
||||
return
|
||||
var/n_name = sanitizeSafe(tgui_input_text(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN), MAX_NAME_LEN)
|
||||
var/n_name = sanitizeSafe(tgui_input_text(usr, "What would you like to label the paper?", "Paper Labelling", null, MAX_NAME_LEN, encode = FALSE), MAX_NAME_LEN)
|
||||
|
||||
// We check loc one level up, so we can rename in clipboards and such. See also: /obj/item/photo/rename()
|
||||
if((loc == usr || loc.loc && loc.loc == usr) && usr.stat == 0 && n_name)
|
||||
@@ -438,11 +438,7 @@
|
||||
to_chat(usr, span_info("There isn't enough space left on \the [src] to write anything."))
|
||||
return
|
||||
|
||||
var/raw = tgui_input_text(usr, "Enter what you want to write:", "Write", multiline = TRUE, prevent_enter = TRUE)
|
||||
if(!raw)
|
||||
return
|
||||
|
||||
var/t = sanitize(raw, MAX_PAPER_MESSAGE_LEN, extra = 0)
|
||||
var/t = tgui_input_text(usr, "Enter what you want to write:", "Write", "", MAX_PAPER_MESSAGE_LEN, TRUE, prevent_enter = TRUE)
|
||||
if(!t)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user