Ignore:
Timestamp:
Oct 16, 2009 12:25:10 PM (4 years ago)
Author:
alec
Message:
  • fix regular expression for malformed tags handler
File:
1 edited

Legend:

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

    r3036 r3046  
    698698 
    699699  // fix (unknown/malformed) HTML tags before "wash" 
    700   $html = preg_replace_callback('/(<[\/!]*)([^ >]+)/', 'rcmail_html_tag_callback', $html); 
     700  $html = preg_replace_callback('/(<[\/]*)([^\s>]+)/', 'rcmail_html_tag_callback', $html); 
    701701 
    702702  // charset was converted to UTF-8 in rcube_imap::get_message_part(), 
     
    909909  $tagname = $matches[2]; 
    910910 
    911   // html comments (#1486189) 
    912   if ($matches[1] == '<!') 
    913     return '<!'; 
    914      
    915911  $tagname = preg_replace(array( 
    916912    '/:.*$/',           // Microsoft's Smart Tags <st1:xxxx> 
Note: See TracChangeset for help on using the changeset viewer.