From f9d84a09f1b3d2e2292b18cabaccbd02f082cad9 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 17 Mar 2010 06:23:10 +0000 Subject: [PATCH] =?UTF-8?q?-=20also=20decode=20ticket-subject=20in=20ticke?= =?UTF-8?q?t-class,=20thx=20to=20Micha=C5=82=20Go=C5=BAdzik=20for=20the=20?= =?UTF-8?q?hint,=20fixes=20#67?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/classes/ticket/class.ticket.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/classes/ticket/class.ticket.php b/lib/classes/ticket/class.ticket.php index 2c412e0b..fe8d25a8 100644 --- a/lib/classes/ticket/class.ticket.php +++ b/lib/classes/ticket/class.ticket.php @@ -693,6 +693,10 @@ class ticket { return str_replace('script>', 'pre>', htmlspecialchars_decode(nl2br($this->t_data[$_var]))); } + elseif(strtolower($_var) == 'subject') + { + return str_replace('script>', 'pre>', htmlspecialchars_decode(nl2br($this->t_data[$_var]))); + } else { return $this->t_data[$_var];