This commit is contained in:
Aleksander Machniak 2025-12-14 09:15:49 +01:00
parent 7c3267b9b0
commit dc4ffea1d0

View File

@ -303,7 +303,7 @@ class UtilsTest extends TestCase
$style = "body { content: '< page: ;/style>< page: ;img src onerror=\"alert(\\'hello\\');\">'; color: red; }";
$mod = \rcube_utils::mod_css_styles($style, 'rcmbody', true);
$this->assertSame("#rcmbody { color: red; }", $mod);
$this->assertSame('#rcmbody { color: red; }', $mod);
// Removing page: property
$style = 'body { page: test; color: red }';