Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the OpenGuides CPAN distribution.

Report information
The Basics
Id: 15221
Status: resolved
Priority: 0/
Queue: OpenGuides

People
Owner: dom [...] cpan.org
Requestors: ivorw-cpan [...] xemaps.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.50
Fixed in: (no value)



Subject: OpenGuides permits characters in metadata which break XML
I have put together several examples of this on the sandbox page (attached) http://london.openguides.org/index.cgi?id=Sandbox;version=75;format=rdf Ampersand escaping is occurring in some metadata fields but not others. Similarly angle < and > Either we validate the fields on submission, or we need to change the RDF code to do proper escaping.
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/" xmlns:chefmoz="http://chefmoz.org/rdf/elements/1.0/" xmlns:wn="http://xmlns.com/wordnet/1.6/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:os="http://downlode.org/rdf/os/0.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns="http://www.w3.org/2000/10/swap/pim/contact#" > <rdf:Description rdf:about=""> <dc:title>The Open Guide to London: Sandbox</dc:title> <dc:date>2005-10-22T13:16:46</dc:date> <dcterms:modified>2005-10-22T13:16:46</dcterms:modified> <dc:contributor>IvorW</dc:contributor> <dc:source rdf:resource="http://london.openguides.org/index.cgi?Sandbox" /> <wiki:version>75</wiki:version> <foaf:topic rdf:resource="#obj" /> </rdf:Description> <geo:SpatialThing rdf:ID="obj" dc:title="Sandbox"> <dc:description>A page for testing & breaking the <system></dc:description> <!-- categories --> <dc:subject>Parks & Plazas</dc:subject> <!-- address and geospatial data --> <address>1 High Street & close</address> <city>London</city> <postalCode>WC5A 2YY</postalCode> <country>United Kingdom</country> <foaf:based_near> <wn:Neighborhood> <foaf:name>Highbury &amp; Islington</foaf:name> </wn:Neighborhood> </foaf:based_near> <geo:lat>51.362603xxx</geo:lat> <geo:long>-0.092219yyy</geo:long> <!-- contact information --> <phone>020 7456 7890</phone> <fax>020 7654 3210</fax> <foaf:homepage rdf:resource="http://www.mysite.com duff url" /> <chefmoz:Hours>24 by 7 mondays &amp; tuesdays</chefmoz:Hours> </geo:SpatialThing> </rdf:RDF>
Show quoted text
> Either we validate the fields on submission, or we need to change the > RDF code to do proper escaping.
OpenGuides::RDF already does escaping, but it seems that the address and summary fields (recently added) had not been submitted to it. Fixed in svn.