PDA

View Full Version : [BUG] RSS Feed


James Goddard
03-09-2005, 12:49 PM
The RSS generator doesn't seem to handle &'s properly:

http://www.midwestdive.com/forums/articles.php?action=rss

cinq
03-17-2005, 11:23 AM
James, I think you editted something in articles.php and left a missing tag or something.
Can't see the error you are facing.

James Goddard
03-17-2005, 12:05 PM
James, I think you editted something in articles.php and left a missing tag or something.
Can't see the error you are facing.


Yea, you've caught me mid edit. I've been trying to make all the vbArticles pages XHTML compliant and when you hit this I had changed a selected to selected="selected" without escaping the quotes.

I was getting an XML error because of one of my articles was written by "Richard L. Pyle & David A. Youngblood". I don't recall the exact error but it didn't like the unescaped &. You won't see it anymore because I have escaped the & in the author field itself, i.e. it is now "Richard L. Pyle & David A. Youngblood".

Basicly there are several places where you should probably be running htmlentities or htmlspecialchars on the output.

James