alecpl
2009-04-17 3bde305e77195ce1655fe66f9911cfc57a8e4021
program/steps/mail/func.inc
@@ -660,7 +660,7 @@
    '/<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)
    '/^[\xFE\xFF\xBB\xBF\x00]+((?:<\!doctype|\<html))/im',   // remove byte-order mark (only outlook?)
    '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/',   // byte-order mark (only outlook?)
  );
  $html_replace = array(
    '\\1'.' &nbsp; '.'\\3',
@@ -669,7 +669,7 @@
    '',
    '',
    '',
    '\\1',
    '',
  );
  $html = preg_replace($html_search, $html_replace, $html);