We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c3c2f9 commit da0311fCopy full SHA for da0311f
1 file changed
tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php
@@ -885,7 +885,7 @@ public function data_sanitize_font_face_settings() {
885
'preview' => " https://example.com/</style><script>alert('XSS');</script> ",
886
),
887
'expected' => array(
888
- 'fontFamily' => '"Open Sans"',
+ 'fontFamily' => '"Open Sans\\3C /style\\3E \\3C script\\3E alert(\\27 XSS\\27 )\\3B \\3C /script\\3E "',
889
'fontStyle' => 'oblique 20deg 50deg',
890
'fontWeight' => '200',
891
'src' => 'https://example.com//stylescriptalert(\'XSS\');/script%20%20%20%20%20%20',
0 commit comments