From d1621357a66073416c0ed78f02f3ab7d5d2bf1d8 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 27 Feb 2014 22:49:35 -0600 Subject: [PATCH] html: Drop xml processing instructions from email --- include/class.format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class.format.php b/include/class.format.php index 8bdb7fa46..03216e4a0 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -202,8 +202,9 @@ class Format { array(':<(head|style|script).+</\1>:is', # <head> and <style> sections ':<!\[[^]<]+\]>:', # <![if !mso]> and friends ':<!DOCTYPE[^>]+>:', # <!DOCTYPE ... > + ':<\?[^>]+>:', # <?xml version="1.0" ... > ), - array('', '', ''), + array('', '', '', ''), $html); $config = array( 'safe' => 1, //Exclude applet, embed, iframe, object and script tags. -- GitLab