Issue Type: Bug Created: 2008-02-09T13:36:46.000+0000 Last Updated: 2009-10-16T05:00:32.000+0000 Status: Resolved Fix version(s): - 1.9.5 (27/Oct/09)
Reporter: Eris Ristemena (eristemena) Assignee: Stefan Gehrig (sgehrig) Tags: - Zend_Feed
Related issues: Attachments:
i always got this warning when using Zend_Feed,
PHP Warning: DOMDocument::createElement(): unterminated entity reference irec=1
it happens when the feed entry has "irec=1", so the entry is truncated on that part. I read in PHP Manual (http://php.oregonstate.edu/manual/en/…), and i found out there's something must be add in Zend/Feed/Element.php on line 209.
I tried to change this line 209 into :
$node = $this->_element->ownerDocument->createElement($var, htmlentities($val));
i added htmlentities(), and the warning is gone, and the entry is not truncated.
So you guys should add this htmlentities() i think,
Posted by Wil Sinclair (wil) on 2008-02-20T15:51:43.000+0000
Setting priority for release and assigning for review.
Posted by Wil Sinclair (wil) on 2008-03-21T17:05:26.000+0000
This issue should have been fixed for the 1.5 release.
Posted by Wil Sinclair (wil) on 2008-04-18T13:11:55.000+0000
This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.
Posted by Stefan Gehrig (sgehrig) on 2009-10-16T05:00:30.000+0000
Fixed in trunk (r18567) and in 1.9-release branch (r18568)
Have you found an issue?
See the Overview section for more details.