Skip to content
Snippets Groups Projects
Verified Commit dbf142e9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2692451 by neclimdul, tedfordgif, smustgrave, mikey_p, larowlan:...

Issue #2692451 by neclimdul, tedfordgif, smustgrave, mikey_p, larowlan: Xss::filterAdmin() incorrectly filters datetime attribute

(cherry picked from commit 5af2ad5f)
parent 03d37513
No related branches found
Tags 1.0.0-alpha19
7 merge requests!8394[warning] array_flip(): Can only flip STRING and INTEGER values, when saving a non-revisionable custom content entity,!7780issue 3443822: fix for 'No route found for the specified format html. Supported formats: json, xml.',!5013Issue #3071143: Table Render Array Example Is Incorrect,!4848Issue #1566662: Update module should send notifications on Thursdays,!4792Issue #2230689: Remove redundant "Italic" style,!4220Issue #3368223: Link field > Access to internal links is not checked on display.,!1459Issue #3087632: menu_name max length is too long
......@@ -238,6 +238,7 @@ protected static function attributes($attributes) {
'rel',
'property',
'class',
'datetime',
]);
$working = $mode = 1;
......
......@@ -553,6 +553,24 @@ public function providerTestAttributes() {
'Image tag with malformed SRC',
['img'],
],
[
'<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>',
'<del datetime="1789-08-22T12:30:00.1-04:00">deleted text</del>',
'Del with datetime attribute',
['del'],
],
[
'<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>',
'<ins datetime="1986-01-28 11:38:00.010">inserted text</ins>',
'Ins with datetime attribute',
['ins'],
],
[
'<time datetime="1978-11-19T05:00:00Z">#DBD</time>',
'<time datetime="1978-11-19T05:00:00Z">#DBD</time>',
'Time with datetime attribute',
['time'],
],
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment