diff options
author | Dave Beckett <dave@dajobe.org> | 2013-09-12 10:03:56 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2013-09-12 10:03:56 -0700 |
commit | 0f6331ea0dd891a81523e1612436f2882d06f47b (patch) | |
tree | 6c0d91973edee84e1e89a077fbe3ae7011de5c56 /src/ntriples_parse.c | |
parent | a1af395db76912e93a9940c6e8c3cb9469f722e4 (diff) | |
download | raptor-0f6331ea0dd891a81523e1612436f2882d06f47b.tar.gz |
Use raptor_uri_string_is_absolute to enforce abs URIs for N-Triples
Diffstat (limited to 'src/ntriples_parse.c')
-rw-r--r-- | src/ntriples_parse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ntriples_parse.c b/src/ntriples_parse.c index 31e67fa9..1f9a817b 100644 --- a/src/ntriples_parse.c +++ b/src/ntriples_parse.c @@ -559,7 +559,11 @@ raptor_ntriples_parse_line(raptor_parser* rdf_parser, if(ordinal <= 0) raptor_parser_error(rdf_parser, "Illegal ordinal value %d in property '%s'.", ordinal, dest); } - + if(raptor_uri_string_is_absolute(dest) <= 0) { + raptor_parser_error(rdf_parser, "URI '%s' is not absolute.", dest); + goto cleanup; + } + uri = raptor_new_uri(rdf_parser->world, dest); if(!uri) { raptor_parser_error(rdf_parser, "Could not create URI for '%s'", (const char *)dest); |