Issue #3252587 by longwave, smustgrave, Chalk, borisson_, alexpott: Extend the $skip_protocol_filtering list of attributes to use Tailwind CSS classes with prefix ":"

merge-requests/2103/head
Lauri Eskola 2022-07-12 16:16:42 +03:00
parent 4411770d8e
commit b6217bd4a9
No known key found for this signature in database
GPG Key ID: 382FC0F5B0DF53F8
2 changed files with 3 additions and 2 deletions

View File

@ -237,6 +237,7 @@ class Xss {
'alt',
'rel',
'property',
'class',
]);
$working = $mode = 1;

View File

@ -504,8 +504,8 @@ class XssTest extends TestCase {
public function providerTestAttributes() {
return [
[
'<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">',
'<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt">',
'<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">',
'<img src="http://example.com/foo.jpg" title="Example: title" alt="Example: alt" class="md:block">',
'Image tag with alt and title attribute',
['img'],
],