mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-03-24 14:57:01 +00:00
Downgrade comment removal error to E_NOTICE.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1240 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
7a8edc88f9
commit
0bfa42f9b7
@ -143,7 +143,7 @@ class HTMLPurifier_Strategy_RemoveForeignElements extends HTMLPurifier_Strategy
|
|||||||
$token = new HTMLPurifier_Token_Text($data);
|
$token = new HTMLPurifier_Token_Text($data);
|
||||||
} else {
|
} else {
|
||||||
// strip comments
|
// strip comments
|
||||||
if ($e) $e->send(E_ERROR, 'Strategy_RemoveForeignElements: Comment removed', $token->data);
|
if ($e) $e->send(E_NOTICE, 'Strategy_RemoveForeignElements: Comment removed', $token->data);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} elseif ($token->type == 'text') {
|
} elseif ($token->type == 'text') {
|
||||||
|
@ -42,7 +42,7 @@ class HTMLPurifier_Strategy_RemoveForeignElements_ErrorsTest extends HTMLPurifie
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testCommentRemoved() {
|
function testCommentRemoved() {
|
||||||
$this->expectErrorCollection(E_ERROR, 'Strategy_RemoveForeignElements: Comment removed', ' test ');
|
$this->expectErrorCollection(E_NOTICE, 'Strategy_RemoveForeignElements: Comment removed', ' test ');
|
||||||
$this->invoke('<!-- test -->');
|
$this->invoke('<!-- test -->');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user