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: 15091
Status: resolved
Priority: 0/
Queue: OpenGuides

People
Owner: Nobody in particular
Requestors: ivorw-cpan [...] xemaps.com
Cc:
AdminCc:

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



Subject: Website metadata allows invalid characters which break the RDF feed
Currently, no syntax validation is performed on the field "website". This actually allows square bracket syntax, such as the page: http://london.openguides.org/index.cgi?Peckham_Rye_Common_And_Park Unfortunately, this cleverness breaks anything parsing the RDF data (attached). Either this metadata field should be validated more strictly in the commit function (probably a good idea), or we should at least cater for square bracket links in the RDF feed.
<?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: Peckham Rye Common And Park</dc:title> <dc:date>2005-10-13T21:31:16</dc:date> <dcterms:modified>2005-10-13T21:31:16</dcterms:modified> <dc:contributor>Housekeeping Robot</dc:contributor> <dc:source rdf:resource="http://london.openguides.org/index.cgi?Peckham_Rye_Common_And_Park" /> <wiki:version>5</wiki:version> <foaf:topic rdf:resource="#obj" /> </rdf:Description> <geo:SpatialThing rdf:ID="obj" dc:title="Peckham Rye Common And Park"> <!-- categories --> <dc:subject>Parks</dc:subject> <!-- address and geospatial data --> <address>Peckham Rye Common & Park</address> <city>London</city> <country>United Kingdom</country> <foaf:based_near> <wn:Neighborhood> <foaf:name>Peckham</foaf:name> </wn:Neighborhood> </foaf:based_near> <geo:lat>51.457686</geo:lat> <geo:long>-0.059420</geo:long> <!-- contact information --> <foaf:homepage rdf:resource="[http://www.southwark.gov.uk/YourServices/ParksSection/AZParks/PeckhamRye.html Southwark Park Service]" /> </geo:SpatialThing> </rdf:RDF>