Skip to content

Commit

Permalink
Merge pull request #628 from greezybacon/issue/xml-pi-drop
Browse files Browse the repository at this point in the history
html: Drop xml processing instructions from email

Reviewed-By: Peter Rotich <peter@osticket.com>
  • Loading branch information
protich committed Feb 28, 2014
2 parents c50b629 + d162135 commit 596443d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/class.format.php
Expand Up @@ -202,8 +202,9 @@ function safe_html($html) {
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.
Expand Down

0 comments on commit 596443d

Please sign in to comment.