Changeset 5428 in subversion


Ignore:
Timestamp:
Nov 15, 2011 7:06:58 AM (18 months ago)
Author:
alec
Message:
  • Fix handling of HTML form elements in messages (#1485137)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r5427 r5428  
    22=========================== 
    33 
     4- Fix handling of HTML form elements in messages (#1485137) 
    45- Fix regression in setting recipient to self when replying to a Sent message (#1487074) 
    56- Fix listing of folders in hidden namespaces (#1486796) 
  • trunk/roundcubemail/program/lib/washtml.php

    r4771 r5428  
    8282{ 
    8383  /* Allowed HTML elements (default) */ 
    84   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', 'wbr', 'img'); 
    85    
     84  static $html_elements = array('a', 'abbr', 'acronym', 'address', 'area', 'b', 
     85    'basefont', 'bdo', 'big', 'blockquote', 'br', 'caption', 'center', 
     86    'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 
     87    'dt', 'em', 'fieldset', 'font', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 
     88    'ins', 'label', 'legend', 'li', 'map', 'menu', 'nobr', 'ol', 'p', 'pre', 'q', 
     89    's', 'samp', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'table', 
     90    'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'u', 'ul', 'var', 'wbr', 'img', 
     91    // form elements 
     92    'button', 'input', 'textarea', 'select', 'option', 'optgroup' 
     93  ); 
     94 
    8695  /* Ignore these HTML tags and their content */ 
    8796  static $ignore_elements = array('script', 'applet', 'embed', 'object', 'style'); 
    88    
     97 
    8998  /* Allowed HTML attributes */ 
    90   static $html_attribs = array('name', 'class', 'title', 'alt', 'width', 'height', 'align', 'nowrap', 'col', 'row', 'id', 'rowspan', 'colspan', 'cellspacing', 'cellpadding', 'valign', 'bgcolor', 'color', 'border', 'bordercolorlight', 'bordercolordark', 'face', 'marginwidth', 'marginheight', 'axis', 'border', 'abbr', 'char', 'charoff', 'clear', 'compact', 'coords', 'vspace', 'hspace', 'cellborder', 'size', 'lang', 'dir');   
     99  static $html_attribs = array('name', 'class', 'title', 'alt', 'width', 'height', 
     100    'align', 'nowrap', 'col', 'row', 'id', 'rowspan', 'colspan', 'cellspacing', 
     101    'cellpadding', 'valign', 'bgcolor', 'color', 'border', 'bordercolorlight', 
     102    'bordercolordark', 'face', 'marginwidth', 'marginheight', 'axis', 'border', 
     103    'abbr', 'char', 'charoff', 'clear', 'compact', 'coords', 'vspace', 'hspace', 
     104    'cellborder', 'size', 'lang', 'dir', 
     105    // attributes of form elements 
     106    'type', 'rows', 'cols', 'disabled', 'readonly', 'checked', 'multiple', 'value' 
     107  ); 
    91108 
    92109  /* Block elements which could be empty but cannot be returned in short form (<tag />) */ 
    93   static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong', 'i', 'b'); 
    94    
     110  static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', 
     111    'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong', 'i', 'b'); 
     112 
    95113  /* State for linked objects in HTML */ 
    96114  public $extlinks = false; 
     
    101119  /* Registered callback functions for tags */ 
    102120  private $handlers = array(); 
    103    
     121 
    104122  /* Allowed HTML elements */ 
    105123  private $_html_elements = array(); 
     
    113131  /* Allowed HTML attributes */ 
    114132  private $_html_attribs = array(); 
    115    
     133 
    116134 
    117135  /* Constructor */ 
Note: See TracChangeset for help on using the changeset viewer.