mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 12:56:10 +01:00
Character preferences / records html decoding (#17796)
Character preferences / records are now decoded correctly for the computer UI and character preference. Known issues, that already existed before this PR: Security incident reports cannot be imported (nothing appears), charges and details of an incident do not show up on the PDA application 
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
"<a href='?src=\ref[src];flavor_text=open'>Set Flavor Text</a><br/>",
|
||||
"<a href='?src=\ref[src];flavour_text_robot=open'>Set Robot Flavor Text</a><br/>",
|
||||
"<br>",
|
||||
"Signature: <font face='[pref.signfont ? pref.signfont : "Verdana"]'>[pref.signature]</font><br/>",
|
||||
"Signature: <font face='[pref.signfont ? pref.signfont : "Verdana"]'>[html_decode(pref.signature)]</font><br/>",
|
||||
"<a href='?src=\ref[src];edit_signature=text'>Edit Text</a> | ",
|
||||
"<a href='?src=\ref[src];edit_signature=font'>Edit Font</a> | ",
|
||||
"<a href='?src=\ref[src];edit_signature=help'>Help</a> | ",
|
||||
@@ -164,7 +164,7 @@
|
||||
else if (href_list["edit_signature"])
|
||||
switch (href_list["edit_signature"])
|
||||
if ("text")
|
||||
var/new_sign = tgui_input_text(usr, "Please input the new character signature.", "New Signature", html2pencode(pref.signature))
|
||||
var/new_sign = tgui_input_text(usr, "Please input the new character signature.", "New Signature", html2pencode(html_decode(pref.signature)), encode = FALSE)
|
||||
if (!new_sign)
|
||||
to_chat(usr, SPAN_NOTICE("Cancelled."))
|
||||
if (pref.signature)
|
||||
|
||||
Reference in New Issue
Block a user