summaryrefslogtreecommitdiff
path: root/src/ntriples_parse.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2013-11-27 09:17:40 -0800
committerDave Beckett <dave@dajobe.org>2013-11-27 09:42:35 -0800
commit66e5f079a645da922097b892abd4a872d7972053 (patch)
treeb00bd77226253d7866a3f0fbb1bb6fa68acbac77 /src/ntriples_parse.c
parentf8d7642ab40062966e351ace0d5a034251d5eef7 (diff)
downloadraptor-66e5f079a645da922097b892abd4a872d7972053.tar.gz
(raptor_ntriples_term_valid): Do not allow . in bnode
This isn't correct; '.' is allowed in positions 1..N-1 but this calling convention of character-by-character cannot check this.
Diffstat (limited to 'src/ntriples_parse.c')
-rw-r--r--src/ntriples_parse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ntriples_parse.c b/src/ntriples_parse.c
index 992f1b02..288d35c6 100644
--- a/src/ntriples_parse.c
+++ b/src/ntriples_parse.c
@@ -187,7 +187,12 @@ raptor_ntriples_term_valid(raptor_parser* rdf_parser,
/* ends on first non [A-Za-z0-9_:][-.A-Za-z0-9]* */
result = IS_ASCII_ALPHA(c) || IS_ASCII_DIGIT(c) || c == '_' || c == ':';
if(position)
- result = (result || c == '-' || c == '.');
+ /* FIXME
+ * This isn't correct; '.' is allowed in positions 1..N-1 but
+ * this calling convention of character-by-character cannot
+ * check this.
+ */
+ result = (result || c == '-');
break;
case RAPTOR_TERM_CLASS_STRING: