Changeset c1fcd1b in github
- Timestamp:
- Nov 15, 2011 7:06:58 AM (18 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- c136f62
- Parents:
- 5aeeeba
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/washtml.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r5aeeeba rc1fcd1b 2 2 =========================== 3 3 4 - Fix handling of HTML form elements in messages (#1485137) 4 5 - Fix regression in setting recipient to self when replying to a Sent message (#1487074) 5 6 - Fix listing of folders in hidden namespaces (#1486796) -
program/lib/washtml.php
re4d0947 rc1fcd1b 82 82 { 83 83 /* 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 86 95 /* Ignore these HTML tags and their content */ 87 96 static $ignore_elements = array('script', 'applet', 'embed', 'object', 'style'); 88 97 89 98 /* 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 ); 91 108 92 109 /* 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 95 113 /* State for linked objects in HTML */ 96 114 public $extlinks = false; … … 101 119 /* Registered callback functions for tags */ 102 120 private $handlers = array(); 103 121 104 122 /* Allowed HTML elements */ 105 123 private $_html_elements = array(); … … 113 131 /* Allowed HTML attributes */ 114 132 private $_html_attribs = array(); 115 133 116 134 117 135 /* Constructor */
Note: See TracChangeset
for help on using the changeset viewer.
