Zend Framework

Zend_Feed_Rss missing cdata for image title

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.3
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Feed
  • Labels:
    None

Description

the rss feed has a cdata for header title but not for header image title ;(

--- trunk/lib/vendor/Zend/1_6_2/Zend/Feed/Rss.php       (Revision 13622)
+++ trunk/lib/vendor/Zend/1_6_2/Zend/Feed/Rss.php       (Arbeitskopie)
@@ -173,7 +173,8 @@
             $image = $this->_element->createElement('image');
             $url = $this->_element->createElement('url', $array->image);
             $image->appendChild($url);
-            $imagetitle = $this->_element->createElement('title', $array->title);
+            $imagetitle = $this->_element->createElement('title');
+            $imagetitle->appendChild($this->_element->createCDATASection($array->title));
             $image->appendChild($imagetitle);
             $imagelink = $this->_element->createElement('link', $array->link);
             $image->appendChild($imagelink);

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r13901

Show
Satoru Yoshida added a comment - Solved in SVN r13901

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
30m
Time Spent - 30 minutes