From c22f019ea11ddedff3aa3a66c8add010e2d03f59 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 9 Dec 2020 22:23:37 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02847=20-=20Add=20data-[role|object-class?= =?UTF-8?q?|object-id]=20attributes=20to=20the=20HTML=20sanitizer=20white?= =?UTF-8?q?=20list=20for=20anchors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/htmlsanitizer.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/htmlsanitizer.class.inc.php b/core/htmlsanitizer.class.inc.php index dbda6e59a..ccda5bd61 100644 --- a/core/htmlsanitizer.class.inc.php +++ b/core/htmlsanitizer.class.inc.php @@ -162,7 +162,7 @@ class HTMLDOMSanitizer extends HTMLSanitizer protected static $aTagsWhiteList = array( 'html' => array(), 'body' => array(), - 'a' => array('href', 'name', 'style', 'target', 'title'), + 'a' => array('href', 'name', 'style', 'target', 'title', 'data-role', 'data-object-class', 'data-object-id'), 'p' => array('style'), 'blockquote' => array('style'), 'br' => array(),