X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FSanitizerTest.php;h=1b67bbdf79f57ebbb2bd9e8cf6f82a5235d1d156;hp=ad8aa1e7ebc9ebab44aa0cfa70eed23eba24677c;hb=214b37ff07f3fde89430297b2a857750a56ae205;hpb=9ff8e0a94621ff441ba68f64de76c69a5b9c9319 diff --git a/tests/phpunit/includes/parser/SanitizerTest.php b/tests/phpunit/includes/parser/SanitizerTest.php index ad8aa1e7eb..1b67bbdf79 100644 --- a/tests/phpunit/includes/parser/SanitizerTest.php +++ b/tests/phpunit/includes/parser/SanitizerTest.php @@ -326,6 +326,7 @@ class SanitizerTest extends MediaWikiTestCase { ], [ '/* insecure input */', 'foo: attr( title, url );' ], [ '/* insecure input */', 'foo: attr( title url );' ], + [ '/* insecure input */', 'foo: var(--evil-attribute)' ], ]; } @@ -527,6 +528,7 @@ class SanitizerTest extends MediaWikiTestCase { ], [ '123', '123' ], [ '123', '123' ], + [ '12', '1 2' ], ]; }