Title:
Bug 74210:CFFeed should create valid feeds (it should scrub invalid chars before formatting as XML)
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Todd Sharp / todd sharp (cfsilence)
Created: 12/11/2008
Components: CFFeed
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 230981
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 3
Problem:
CFFeed should create valid feeds (it should scrub invalid chars before formatting as XML).
Related to 72971.
Method:
<cfscript>
myFeed = StructNew();
myFeed.version = "rss_2.0";
myFeed.title = "Game Site Fake Game Review Site&&&&&&&&&";
myFeed.description = "Fictional gaming website example<<<<<<<<<<";
myFeed.link = "http://www.gamesitesgamereviews.com";
myFeed.category = arrayNew(1);
myFeed.category[1] = structNew();
myFeed.category[1].value = "PC Games";
myFeed.category[2] = structNew();
myFeed.category[2].value = "Video Games";
myFeed.image = structNew();
myFeed.image.title = "Site logo";
myFeed.image.url = "http://www.gamesitesgamereviews.com/logos/rss.png";
myFeed.image.link = "http://www.gamesitesgamereviews.com";
</cfscript>
<cffeed action="create" name="#myFeed#" xmlvar="rssFeed" outputfile="myrssfeed.xml" overwrite="yes">
<cfoutput>#HTMLCODEFORMAT(rssFeed)#</cfoutput>
<cffeed action="read" source="myrssfeed.xml" name="feedInStruct" >
<cfdump var="#feedInStruct#">
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037037
External Customer Info:
External Company:
External Customer Name: todd sharp
External Customer Email: 7A924EE2445A4FDB992015D5
External Test Config: 12/11/2008
Attachments:
Comments: