Subject: [Boost-commit] svn:boost r49538 - website/public_html/beta/common/code
From: daniel_james_at_[hidden]
Date: 2008-11-02 14:49:44


Author: danieljames
Date: 2008-11-02 14:49:44 EST (Sun, 02 Nov 2008)
New Revision: 49538
URL: http://svn.boost.org/trac/boost/changeset/49538

Log:
When processing rss feeds, don't skip whitespace as it was causing required
whitespace to be skipped, and don't html decode the values, as they've already
been decoded by the XML parser.

Text files modified:
   website/public_html/beta/common/code/boost_feed.php | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: website/public_html/beta/common/code/boost_feed.php
==============================================================================
--- website/public_html/beta/common/code/boost_feed.php (original)
+++ website/public_html/beta/common/code/boost_feed.php 2008-11-02 14:49:44 EST (Sun, 02 Nov 2008)
@@ -22,7 +22,6 @@
         //~ print "<!-- boost_fead (2) ".$xml_file." -->\n";
         $parser = xml_parser_create();
         xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
- xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
         xml_parse_into_struct($parser, $xml, $values);
         xml_parser_free($parser);
         
@@ -50,7 +49,7 @@
                     {
                         if (isset($val['value']))
                         {
- $item[strtolower($val['tag'])] = html_entity_decode(trim($val['value']));
+ $item[strtolower($val['tag'])] = trim($val['value']);
                             switch (strtolower($val['tag']))
                             {
                                 case 'pubdate':