Changeset 7f62581 in github


Ignore:
Timestamp:
Sep 17, 2008 3:47:32 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
c9e7c74
Parents:
e11bc4a
Message:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rd93fc99 r7f62581  
    1010- Added Reply-To to forwarded emails (#1485315) 
    1111- Display progress message for folders create/delete/rename (#1485357) 
     12- Smart Tags and NOBR tag support in html messages (#1485363, #1485327) 
    1213 
    13142008/09/15 (thomasb) 
  • program/lib/washtml.php

    ra47acc5 r7f62581  
    7575{ 
    7676  /* Allowed HTML elements (default) */ 
    77   static $html_elements = array('a', 'abbr', 'acronym', 'address', 'area', 'b', 'basefont', 'bdo', 'big', 'blockquote', 'br', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'fieldset', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'label', 'legend', 'li', 'map', 'menu', 'ol', 'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'u', 'ul', 'var', 'img'); 
     77  static $html_elements = array('a', 'abbr', 'acronym', 'address', 'area', 'b', 'basefont', 'bdo', 'big', 'blockquote', 'br', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'fieldset', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'ins', 'label', 'legend', 'li', 'map', 'menu', 'nobr', 'ol', 'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'u', 'ul', 'var', 'img'); 
    7878   
    7979  /* Ignore these HTML tags but process their content */ 
  • program/steps/mail/func.inc

    rd734041f r7f62581  
    612612    $html = preg_replace('/<title>.*<\/title>/', '', $html); 
    613613 
     614    // special replacements (not properly handled by washtml class) 
     615    $html_search = array( 
     616        '/(<\/nobr>)(\s+)(<nobr>)/i',   // space(s) between <NOBR> 
     617        '/(<[\/]*st1:[^>]+>)/i',        // Microsoft's Smart Tags <ST1> 
     618    ); 
     619    $html_replace = array( 
     620        '\\1'.' &nbsp; '.'\\3', 
     621        '', 
     622    ); 
     623    $html = preg_replace($html_search, $html_replace, $html); 
     624 
    614625    // clean HTML with washhtml by Frederic Motte 
    615626    $wash_opts = array( 
Note: See TracChangeset for help on using the changeset viewer.