Issues

ZF-4190: Zend_Log_Formatter_Xml and invalid xml

Issue Type: Bug Created: 2008-09-04T12:24:43.000+0000 Last Updated: 2008-11-13T14:10:00.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Vladimir Michailenko (mich) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Log

Related issues: - ZF-2062

Attachments:

Description

{quote} $logger = new Zend_Log(); $writer = new Zend_Log_Writer_Stream('php://output'); $writer->setFormatter(new Zend_Log_Formatter_Xml()); $logger->addWriter($writer);

$logger->err('&amp'); {quote}

got error:

{quote} DOMElement::__construct() [<function.DOMElement---construct>]: unterminated entity reference amp' in \library\Zend\Log\Formatter\Xml.php:78 {quote}

Comments

Posted by Benjamin Eberlei (beberlei) on 2008-11-07T02:46:58.000+0000

Resolved in trunk, using htmlspecialchars() on the log-message.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:00.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts