소스 검색

json parser: change + to @ for URLs (#175)

Since `+` is used in algebraic expressions, this char is unsuitable
for the indication of external URL resourcs as used by the importer of
actinia (https://github.com/mundialis/actinia_core/).

Fixes https://trac.osgeo.org/grass/ticket/3928
Markus Neteler 5 년 전
부모
커밋
2a10f3a713
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/gis/parser_json.c

+ 1 - 1
lib/gis/parser_json.c

@@ -344,7 +344,7 @@ void check_create_import_opts(struct Option *opt, char *element, FILE *fp)
     int has_import = 0;
     char **tokens;
 
-    tokens = G_tokenize(opt->answer, "+");
+    tokens = G_tokenize(opt->answer, "@");
     while (tokens[i]) {
         G_chop(tokens[i]);
         i++;