mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-07 06:36:44 +02:00
[3.1.0] Fixed fatal error in PH5P lexer with invalid tag names
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1650 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -209,3 +209,16 @@ function htmlpurifier_flush($php, $reporter) {
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dumps error queue, useful if there has been a fatal error.
|
||||
*/
|
||||
function htmlpurifier_dump_error_queue() {
|
||||
$context = &SimpleTest::getContext();
|
||||
$queue = &$context->get('SimpleErrorQueue');
|
||||
if ($queue && !empty($queue->_queue)) {
|
||||
// replace this with something prettier
|
||||
var_dump($queue->_queue);
|
||||
}
|
||||
}
|
||||
register_shutdown_function('htmlpurifier_dump_error_queue');
|
||||
|
Reference in New Issue
Block a user