Missing < > & characters from article content

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 03 Dec 2008, 15:34

Yeah, I think it's the same bug. I had a guy email me about it and the workaround described above helped him.

Bernd
Bear Rating Trainee
Bear Rating Trainee
Posts: 25
Joined: 06 May 2008, 15:46

Re: Missing < > & characters from article content

Postby Bernd » 05 Dec 2008, 13:13

I had already included the three lines from above into magpie_rss.inc too, but there are still problems like the last one i wrote.

It seems that there have to be some more replaces? But i don't know where the problem is. Source code from original rss-feed seems to be without wrong characters :(

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 05 Dec 2008, 13:41

I'm not sure. Main problem is, Debian maintainers were smart enough to not include broken libxml in the distribution, so this bug doesn't show up for me. Maybe you could try adding htmlentities() there, possibly instead of those str_replace() calls, to escape all entities altogether.

Bernd
Bear Rating Trainee
Bear Rating Trainee
Posts: 25
Joined: 06 May 2008, 15:46

Re: Missing < > & characters from article content

Postby Bernd » 05 Dec 2008, 15:35

I have tried

Code: Select all

$source=htmlentities($source, ENT_QUOTES);

instead, but now all feeds produces errors

Code: Select all

# Meet the GIMP! (http://meetthegimp.org/feed/): MagpieRSS: Failed to parse RSS file. (Empty document at line 1, column 1)

hmoffatt
Bear Rating Trainee
Bear Rating Trainee
Posts: 43
Joined: 15 Jul 2006, 04:59

Re: Missing < > & characters from article content

Postby hmoffatt » 02 Apr 2009, 05:45

I'm getting bad parsing of some sites eg http://treadly.net/feed/atom/

I don't even have libxml2 installed. I'm using debian etch still. Upgrading tt-rss is the only change I've made...

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 02 Apr 2009, 11:30

Unfortunately, it parses fine for me.

Code: Select all

libxml2:
  Installed: 2.6.32.dfsg-5
  Candidate: 2.6.32.dfsg-5
  Version table:
 *** 2.6.32.dfsg-5 0
        500 http://http.us.debian.org lenny/main Packages
        100 /var/lib/dpkg/status


I don't even have libxml2 installed.


I find it hard to believe - php5 package depends on libxml2.

hmoffatt
Bear Rating Trainee
Bear Rating Trainee
Posts: 43
Joined: 15 Jul 2006, 04:59

Re: Missing < > & characters from article content

Postby hmoffatt » 03 Apr 2009, 04:39

I'm using php4..

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 03 Apr 2009, 11:35

I'm not even sure it is supported anymore, I switched to php5 a long time ago. :(

hmoffatt
Bear Rating Trainee
Bear Rating Trainee
Posts: 43
Joined: 15 Jul 2006, 04:59

Re: Missing < > & characters from article content

Postby hmoffatt » 21 Apr 2009, 08:07

I'm running PHP5 and libxml2 now and I'm still seeing some parsing errors on fresh articles.

Check out:
http://feeds2.feedburner.com/cyclingtipsblog/TJog

In the article "Theo Bos To Switch Sports" (currently the lead article), the link to the flash video is displayed in the text, with the lead part missing, as in

idth="480" height="300" data="http://www.youtube.com/v/aoEd0w-BmfI&hl=en&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6" type="application/x-shockwave-flash">

rather than displaying the flash.

hmoffatt
Bear Rating Trainee
Bear Rating Trainee
Posts: 43
Joined: 15 Jul 2006, 04:59

Re: Missing < > & characters from article content

Postby hmoffatt » 21 Apr 2009, 08:38


User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 21 Apr 2009, 09:15

That's a different thing, you can work around it by disabling "Strip unsafe tags from articles" option in the prefs.

ajl_uk
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 29 Apr 2009, 16:01

Re: Missing < > & characters from article content

Postby ajl_uk » 29 Apr 2009, 16:11

fox wrote:That's a different thing, you can work around it by disabling "Strip unsafe tags from articles" option in the prefs.


I had this problem with the mobile view and changing this option made no difference, then I noticed the code had the following line in mobile/functions.php

Code: Select all

print sanitize_rss($link, $line["content"], true);;


Changing this to false did the job :D

Thanks for letting me finally ditch Google Reader :!:

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 29 Apr 2009, 18:09

I think disabling the "strip unsafe tags" option should effectively make sanitize_rss() to do nothing. Weird. :D

User avatar
markwaters
Bear Rating Trainee
Bear Rating Trainee
Posts: 32
Joined: 20 May 2008, 13:10
Location: France
Contact:

Re: Missing < > & characters from article content

Postby markwaters » 16 Oct 2009, 10:21

I have a friend....lets call him Tom , who is having a similar problem with the RSS feed from :-

http://isshefilthy.blogspot.com/

it shows up with corrupt links in the bonus images part of the feed.

Any suggestions ?
Thanks

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Missing < > & characters from article content

Postby fox » 16 Oct 2009, 11:31

Well, tell your friend Tom that his feed works for me - so it looks like the same library issue as outlined above. Unfortunately, I still don't know how to fix it. :(


Return to “Support”

Who is online

Users browsing this forum: No registered users and 24 guests