[bug] RSS flux break when topic contains some extra caracter

Started by androgyn3, February 01, 2013, 05:35:44 PM

Previous topic - Next topic

androgyn3

Hi,

Some of my users have report a bug who break the XML parser in RSS flux when some topic text contains some extra caracters (vertical tab, \1F)



I use SMF last version 2.0.3.

Perhaps can you add some verification before posting for remove this unwanted caracter or the RSS is break.

Thank

Arantor

Better question, why does your subject have this in it in the first place? It shouldn't even be there - let alone being in RSS...

androgyn3

Hi Arentor,

Sorry, english is not my mother language, i don't understand your question.

It's a subject of a board when my user use rss like http://forum.mysite/?action=.xml;sa=news;boards=33;limit=255

I use Advanced topic prefix premium mod by Nibogo so there are a tag (prefix) in title and RSS but if the special caracter is in body it's same rss break.

Arantor

The RSS feed just gets the raw data.

It isn't just RSS that is broken - the topic itself is broken. So I want to know how it got broken in the first place.

androgyn3

Hi,

The raw data ![cddata ? i don't know, the prefix mod who put it ?
but the topic work well it's just rss who is break because of special caracter, other topic without special caracter work well in rss, it's smf probleme, i think

Arantor

The CDATA bit is *supposed* to be there. It's there for very, very good reasons.

The 1F bit you reported is physically part of the topic subject. It's not supposed to be there. I'm surprised it's not giving you trouble with other things.

androgyn3

No, not other problem just rss, the 1F bit is put when some user do a copy/past from elsewhere i think, the caracter is not filtered

Arantor

And that's a problem in itself - it should *never* be getting in in the first place...

Advertisement: