Changeset 3348176 in github


Ignore:
Timestamp:
Dec 27, 2008 2:45:49 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
17060ee
Parents:
922c2d9
Message:

#1485647: handle PRE_TEXT tags in html messages (+ small fixes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/func.inc

    r58687d0 r3348176  
    643643    $html_search = array( 
    644644      '/(<\/nobr>)(\s+)(<nobr>)/i',     // space(s) between <NOBR> 
    645     '/(<[\/]*st1:[^>]+>)/i',    // Microsoft's Smart Tags <ST1> 
    646     '/<title>.*<\/title>/i',    // PHP bug #32547 workaround: remove title tag 
    647     '/<html[^>]*>/im',          // malformed html: remove html tags (#1485139) 
    648     '/<\/html>/i',                      // malformed html: remove html tags (#1485139) 
    649     '/^[\xFE\xFF\xBB\xBF\x00]+((?:<\!doctype|\<html))/im',      // remove byte-order mark (only outlook?) 
     645      '/(<[\/]*st1:[^>]+>)/i',          // Microsoft's Smart Tags <ST1> 
     646      '/<\/?rte_text>/i',               // Rich Text Editor tags (#1485647) 
     647      '/<title>.*<\/title>/i',          // PHP bug #32547 workaround: remove title tag 
     648      '/<html[^>]*>/im',                // malformed html: remove html tags (#1485139) 
     649      '/<\/html>/i',                    // malformed html: remove html tags (#1485139) 
     650      '/^[\xFE\xFF\xBB\xBF\x00]+((?:<\!doctype|\<html))/im',    // remove byte-order mark (only outlook?) 
    650651    ); 
    651652    $html_replace = array( 
     
    654655      '', 
    655656      '', 
     657      '', 
     658      '', 
    656659      '\\1', 
    657       '', 
    658660    ); 
    659661    $html = preg_replace($html_search, $html_replace, $html); 
Note: See TracChangeset for help on using the changeset viewer.