From af9c38a3758b59022fb6fb19967c775fdb83f31d Mon Sep 17 00:00:00 2001 From: "sieve32@gmail.com" Date: Tue, 19 Jun 2012 03:15:55 +0000 Subject: [PATCH] Committing for Giacom -Fix for Issue 555 and Issue 571, so special characters on paper and in announcements don't get converted to html git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3868 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/computer/communications.dm | 2 +- code/modules/paperwork/paper.dm | 4 ++-- html/changelog.html | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index ef57be9f47..2e8152551d 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -98,7 +98,7 @@ if("announce") if(src.authenticated==2) if(message_cooldown) return - var/input = copytext(sanitize(input(usr, "Please choose a message to announce to the station crew.", "What?", "")),1,MAX_MESSAGE_LEN) + var/input = copytext(strip_html_simple(input(usr, "Please choose a message to announce to the station crew.", "What?", "")),1,MAX_MESSAGE_LEN) if(!input || !(usr in view(1,src))) return captain_announce(input)//This should really tell who is, IE HoP, CE, HoS, RD, Captain diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index ed17140de4..91b5f5bca4 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -149,7 +149,7 @@ updateinfolinks() /obj/item/weapon/paper/proc/parsepencode(var/t, var/obj/item/weapon/pen/P, mob/user as mob, var/iscrayon = 0) - t = copytext(sanitize(t),1,MAX_MESSAGE_LEN) +// t = copytext(sanitize(t),1,MAX_MESSAGE_LEN) t = dd_replacetext(t, "\[center\]", "
") t = dd_replacetext(t, "\[/center\]", "
") @@ -184,7 +184,7 @@ t = "[t]" - t = dd_replacetext(t, "#", "") // Junk converted to nothing! +// t = dd_replacetext(t, "#", "") // Junk converted to nothing! //Count the fields var/laststart = 1 diff --git a/html/changelog.html b/html/changelog.html index 5ab731b3ee..8ec86b0d3e 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -46,6 +46,15 @@ Stuff which is in development and not yet visible to players or just code relate should be listed in the changelog upon commit tho. Thanks. --> +
+

June 18th, 2012

+

Giacom updated:

+ +
+ +

June 18th, 2012

Sieve updated: