Browse Source

#1321 Losing table borders (notification templates and notes)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4376 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 years ago
parent
commit
d4de8caaa1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/htmlsanitizer.class.inc.php

+ 2 - 1
core/htmlsanitizer.class.inc.php

@@ -159,7 +159,7 @@ class HTMLDOMSanitizer extends HTMLSanitizer
 		'nav' => array('style'),
 		'section' => array('style'),
 		'code' => array('style'),
-		'table' => array('style', 'width'),
+		'table' => array('style', 'width', 'summary', 'align', 'border', 'cellpadding', 'cellspacing'),
 		'thead' => array('style'),
 		'tbody' => array('style'),
 		'tr' => array('style'),
@@ -183,6 +183,7 @@ class HTMLDOMSanitizer extends HTMLSanitizer
 		'hr' => array('style'),
 		'pre' => array(),
 		'center' => array(),
+		'caption' => array(),
 	);
 	
 	protected static $aAttrsWhiteList = array(