Selaa lähdekoodia

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

Escape more characters for shell stuff
pull/2313/head
Fred Hebert 4 vuotta sitten
committed by GitHub
vanhempi
commit
d18e1bea05
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl Näytä tiedosto

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

Ladataan…
Peruuta
Tallenna