From 440f2639b52f9c0643b4a1bf6809f5ff5e463815 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Fri, 18 Aug 2017 13:59:49 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B0498=20Added=20some=20attributes=20to=20t?= =?UTF-8?q?he=20HTML=20sanitizer=20(title=20for=20a=20tag,=20alt=20/=20tit?= =?UTF-8?q?le=20for=20img=20tag).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4867] --- core/htmlsanitizer.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/htmlsanitizer.class.inc.php b/core/htmlsanitizer.class.inc.php index 7388deddfb..f159e7398a 100644 --- a/core/htmlsanitizer.class.inc.php +++ b/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'),