Changeset 6c2d7ed in github


Ignore:
Timestamp:
Aug 27, 2009 4:09:00 AM (4 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
7e15422
Parents:
0816567
Message:

Strip xmlns attributes from html tag

File:
1 edited

Legend:

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

    r10d0e3e r6c2d7ed  
    677677    '/<title>.*<\/title>/i',            // PHP bug #32547 workaround: remove title tag 
    678678    '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/',    // byte-order mark (only outlook?) 
     679    '/<html\sxmlns:[a-z]=[^>]+>/i',  // washtml/DOMDocument cannot handle xml namespaces 
    679680  ); 
    680681  $html_replace = array( 
     
    682683    '', 
    683684    '', 
     685    '<html>', 
    684686  ); 
    685687  $html = preg_replace($html_search, $html_replace, $html); 
Note: See TracChangeset for help on using the changeset viewer.