Преглед изворни кода

N°498 Added some attributes to the HTML sanitizer (title for a tag, alt / title for img tag).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4867 a333f486-631f-4898-b8df-5754b55c2be0
glajarige пре 7 година
родитељ
комит
19df8e7cad
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      core/htmlsanitizer.class.inc.php

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

@@ -154,7 +154,7 @@ class HTMLDOMSanitizer extends HTMLSanitizer
 	protected static $aTagsWhiteList = array(
 		'html' => array(),
 		'body' => array(),
-		'a' => array('href', 'name', 'style', 'target'),
+		'a' => array('href', 'name', 'style', 'target', 'title'),
 		'p' => array('style'),
 		'br' => array(),
 		'span' => array('style'),
@@ -164,7 +164,7 @@ class HTMLDOMSanitizer extends HTMLSanitizer
 		'u' => array(),
 		'em' => array(),
 		'strong' => array(),
-		'img' => array('src','style'),
+		'img' => array('src', 'style', 'alt', 'title'),
 		'ul' => array('style'),
 		'ol' => array('style'),
 		'li' => array('style'),