diff --git a/Tests/InputFilterTest.php b/Tests/InputFilterTest.php
index 369bb6b5..4b8298ed 100644
--- a/Tests/InputFilterTest.php
+++ b/Tests/InputFilterTest.php
@@ -687,6 +687,12 @@ public function casesGeneric()
'
',
'From generic cases',
],
+ 'Kill script with newline entity' => [
+ '',
+ '
',
+ '
',
+ 'From generic cases',
+ ],
'Nested tags' => [
'',
'Fred',
@@ -827,6 +833,12 @@ public function allowed()
'',
'From specific cases',
],
+ 'Kill script with newline entity' => [
+ '',
+ '
',
+ '',
+ 'From specific cases',
+ ],
'Nested tags' => [
'',
'Fred',
@@ -1005,6 +1017,12 @@ public function allowImg()
'
',
'From generic cases',
],
+ 'Kill script with newline entity' => [
+ '',
+ '
',
+ '
',
+ 'From generic cases',
+ ],
'Nested tags' => [
'',
'Fred',
@@ -1206,6 +1224,12 @@ public function allowClass()
'',
'From specific cases',
],
+ 'Kill script with newline entity' => [
+ '',
+ '
',
+ '',
+ 'From specific cases',
+ ],
'Nested tags' => [
'',
'Fred',
@@ -1742,6 +1766,12 @@ public function blockedImg()
'',
'From specific cases',
],
+ 'Kill script with newline entity' => [
+ '',
+ '
',
+ '',
+ 'From specific cases',
+ ],
'Unquoted Attribute Without Space' => [
'',
'
',
diff --git a/src/InputFilter.php b/src/InputFilter.php
index fb2abc24..d643401b 100644
--- a/src/InputFilter.php
+++ b/src/InputFilter.php
@@ -148,6 +148,7 @@ class InputFilter
*/
private $blockedChars = [
'&tab;',
+ '&newline;',
'&space;',
':',
'&column;',