Skip to content

Commit

Permalink
html: Drop xml processing instructions from email
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Feb 28, 2014
1 parent 12da45f commit d162135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/class.format.php
Original file line number Diff line number Diff line change
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 d162135

Please sign in to comment.