Changeset 767


Ignore:
Timestamp:
Apr 11, 2006, 3:22:18 AM (15 years ago)
Author:
Earle Martin
Message:

crschmidt pointed out that spaces in usernames would create invalid IDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/RDF.pm

    r766 r767  
    113113    }
    114114
     115    my $user_id = $username;
     116    $user_id =~ s/ /_/g;
     117   
    115118    my $url               = $self->{make_node_url}->( $node_name, $version );
    116119    my $version_indpt_url = $self->{make_node_url}->( $node_name );
     
    136139
    137140    <dc:contributor>
    138       <foaf:Person rdf:ID="$username">
     141      <foaf:Person rdf:ID="$user_id">
    139142        <foaf:nick>$username</foaf:nick>
    140143      </foaf:Person>
Note: See TracChangeset for help on using the changeset viewer.