Skip to content

Commit da0311f

Browse files
committed
Update existing test for behavioral change
1 parent 2c3c2f9 commit da0311f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ public function data_sanitize_font_face_settings() {
885885
'preview' => " https://example.com/</style><script>alert('XSS');</script> ",
886886
),
887887
'expected' => array(
888-
'fontFamily' => '"Open Sans"',
888+
'fontFamily' => '"Open Sans\\3C /style\\3E \\3C script\\3E alert(\\27 XSS\\27 )\\3B \\3C /script\\3E "',
889889
'fontStyle' => 'oblique 20deg 50deg',
890890
'fontWeight' => '200',
891891
'src' => 'https://example.com//stylescriptalert(\'XSS\');/script%20%20%20%20%20%20',

0 commit comments

Comments
 (0)