alecpl
2008-12-27 3348176abaed294640761e55fedf5491bf8cddfc
#1485647: handle PRE_TEXT tags in html messages (+ small fixes)


1 files modified
4 ■■■ changed files
program/steps/mail/func.inc 4 ●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -643,6 +643,7 @@
    $html_search = array(
      '/(<\/nobr>)(\s+)(<nobr>)/i',    // space(s) between <NOBR>
    '/(<[\/]*st1:[^>]+>)/i',    // Microsoft's Smart Tags <ST1>
      '/<\/?rte_text>/i',        // Rich Text Editor tags (#1485647)
    '/<title>.*<\/title>/i',    // PHP bug #32547 workaround: remove title tag
    '/<html[^>]*>/im',        // malformed html: remove html tags (#1485139)
    '/<\/html>/i',            // malformed html: remove html tags (#1485139)
@@ -653,8 +654,9 @@
      '',
      '',
      '',
      '\\1',
      '',
      '',
      '\\1',
    );
    $html = preg_replace($html_search, $html_replace, $html);