[MOBY-guts] biomoby commit
Eddie Kawas
kawas at dev.open-bio.org
Mon May 3 18:34:40 UTC 2010
kawas
Mon May 3 14:34:40 EDT 2010
Update of /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY
In directory dev.open-bio.org:/tmp/cvs-serv22545/lib/MOBY
Modified Files:
Central.pm
Log Message:
added check for colons, ':', in registerX methods.
moby-live/Perl/MOBY-Server/lib/MOBY Central.pm,1.12,1.13
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/Central.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/Central.pm 2009/08/28 14:40:44 1.12
+++ /home/repository/moby/moby-live/Perl/MOBY-Server/lib/MOBY/Central.pm 2010/05/03 18:34:40 1.13
@@ -318,7 +318,7 @@
return &_error("Object name may not contain spaces or other characters invalid in a URN",
""
)
- if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}\~%\!\@#\$\*\+=]/;
+ if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}:\~%\!\@#\$\*\+=]/;
if ( $term =~ m"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?" )
{ # matches a URI
return &_error( "Object name may not be an URN or URI", "" ) if $1;
@@ -742,7 +742,7 @@
return &_error("serviceType name may not contain spaces or other characters invalid in a URN",
""
)
- if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}\~%\!\@#\$\*\+=]/;
+ if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}\~%\!\@#\$\*\+=:]/;
# validate that the final ontology will be valid
my ( $exists, $exists_message, $existingURI ) =
@@ -1006,7 +1006,7 @@
return &_error("Namespace name may not contain spaces or other characters invalid in a URN",
""
)
- if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}\~%\!\@#\$\*\+=]/;
+ if $term =~ /[\/\'\\\s"\&\<\>\[\]\^\`\{\|\}\~%\!\@#\$\*\+=:]/;
return &_error( "Malformed authURI - must not have an http:// prefix", "" )
if $auth =~ '[/:]';
return &_error( "Malformed authURI - must take the form NNN.NNN.NNN", "" )
More information about the MOBY-guts
mailing list