diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-07-29 09:09:15 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-07-29 09:09:15 -0400 |
commit | b79ff420c96a531016b33724594b81ae8d6b3423 (patch) | |
tree | 8c3372bfcc8736d5de67ac7ce9e32f8db6481ab9 /src | |
parent | 593db011d4c12273565fe0f923db2db2cfd2ef53 (diff) | |
parent | 238442b57b7137d7698aaee41ce04bdf10096a35 (diff) |
Merge pull request #652 from tsloughter/escape_and
escape & in paths
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_utils.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index c729b58..7ae3d9c 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -757,12 +757,12 @@ set_httpc_options(Scheme, Proxy) -> escape_chars(Str) when is_atom(Str) -> escape_chars(atom_to_list(Str)); escape_chars(Str) -> - re:replace(Str, "([ ()?`!$])", "\\\\&", [global, {return, list}]). + re:replace(Str, "([ ()?`!$&;])", "\\\\&", [global, {return, list}]). %% "escape inside these" escape_double_quotes(Str) -> - re:replace(Str, "([\"\\\\`!$*])", "\\\\&", [global, {return, list}]). + re:replace(Str, "([\"\\\\`!$&*;])", "\\\\&", [global, {return, list}]). %% "escape inside these" but allow * escape_double_quotes_weak(Str) -> - re:replace(Str, "([\"\\\\`!$])", "\\\\&", [global, {return, list}]). + re:replace(Str, "([\"\\\\`!$&;])", "\\\\&", [global, {return, list}]). |