Author: earle Date: 2006-04-11 03:22:18 +0100 (Tue, 11 Apr 2006) New Revision: 767
Modified: trunk/lib/OpenGuides/RDF.pm Log: crschmidt pointed out that spaces in usernames would create invalid IDs
Modified: trunk/lib/OpenGuides/RDF.pm =================================================================== --- trunk/lib/OpenGuides/RDF.pm 2006-04-11 02:12:46 UTC (rev 766) +++ trunk/lib/OpenGuides/RDF.pm 2006-04-11 02:22:18 UTC (rev 767) @@ -112,6 +112,9 @@ $timestamp = $time->strftime("%Y-%m-%dT%H:%M:%S"); }
+ my $user_id = $username; + $user_id =~ s/ /_/g; + my $url = $self->{make_node_url}->( $node_name, $version ); my $version_indpt_url = $self->{make_node_url}->( $node_name ); my $rdf = qq{<?xml version="1.0"?> @@ -135,7 +138,7 @@ dcterms:modified$timestamp</dcterms:modified>
dc:contributor - <foaf:Person rdf:ID="$username"> + <foaf:Person rdf:ID="$user_id"> foaf:nick$username</foaf:nick> </foaf:Person> </dc:contributor>
openguides-commits@lists.openguides.org