diff --git a/tests/unit/framework/SecurityTest.php b/tests/unit/framework/SecurityTest.php index 4246316be..9fb35a2b0 100644 --- a/tests/unit/framework/SecurityTest.php +++ b/tests/unit/framework/SecurityTest.php @@ -15,6 +15,16 @@ class SecurityTest extends \Codeception\Test\Unit // Filename (more thorough tests in FilenameFilterTest) $this->assertEquals('foo(bar).xls', Rhymix\Framework\Security::sanitize('foo.xls', 'filename')); + + // SVG #1 + $source = 'Test'; + $target = '' . "\n\n \n Test\n \n\n"; + $this->assertEquals($target, Rhymix\Framework\Security::sanitize($source, 'svg')); + + // SVG #2 + $source = ''; + $target = '' . "\n\n \n\n"; + $this->assertEquals($target, Rhymix\Framework\Security::sanitize($source, 'svg')); } public function testEncryption()