Skip to content

Commit

Permalink
json parser: change + to @ for URLs (#175)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
neteler committed Nov 3, 2019
1 parent 4a98762 commit 2a10f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gis/parser_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 2a10f3a

Please sign in to comment.