Browse Source

Do not return error for "invalid" URI characters. Count tests pass.

Stefano Cossu 2 years ago
parent
commit
7bc5fbb762
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/term.c

+ 5 - 3
src/term.c

@@ -496,11 +496,13 @@ term_init (
             } else fquri = (char *) data;
 
             if (strpbrk (fquri, invalid_uri_chars) != NULL) {
-                log_error (
-                        "Characters %s are not allowed. Got: %s\n",
+                log_warn (
+                        "Characters %s are not valid in a URI. Got: %s\n",
                         invalid_uri_chars, fquri);
-
+#if 0
+                // TODO This causes W3C TTL test #29 to fail. Remove?
                 return LSUP_VALUE_ERR;
+#endif
             }
 
             // Capture interesting IRI parts.