Browse Source

Merge pull request #2302 from ferd/escape-more-chars

Escape more characters for shell stuff
pull/2313/head
Fred Hebert 5 years ago
committed by GitHub
parent
commit
d18e1bea05
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl View File

@ -962,7 +962,7 @@ url_append_path(Url, ExtraPath) ->
escape_chars(Str) when is_atom(Str) -> escape_chars(Str) when is_atom(Str) ->
escape_chars(atom_to_list(Str)); escape_chars(atom_to_list(Str));
escape_chars(Str) -> escape_chars(Str) ->
re:replace(Str, "([ ()?`!$&;\"\'])", "\\\\&",
re:replace(Str, "([ ()?`!$&;\"\'\|\\t|~<>])", "\\\\&",
[global, {return, list}, unicode]). [global, {return, list}, unicode]).
%% "escape inside these" %% "escape inside these"

Loading…
Cancel
Save