summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-26 10:24:23 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-26 10:24:44 -0500
commit7e4747109cf1d7e2d8c3ce1ce40ce9d0b30a3ca9 (patch)
treeef691daef7ba54edd7403baab077e5460d8b6227 /src
parente2b4dcdb4c68c8142aba9835a5ee4c644aef4e9b (diff)
escape & in paths
Diffstat (limited to 'src')
-rw-r--r--src/rebar_utils.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
index bcb4777..e53bc45 100644
--- a/src/rebar_utils.erl
+++ b/src/rebar_utils.erl
@@ -742,12 +742,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}]).