From 7e4747109cf1d7e2d8c3ce1ce40ce9d0b30a3ca9 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 26 Jul 2015 10:24:23 -0500 Subject: escape & in paths --- src/rebar_utils.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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}]). -- cgit v1.1 From 238442b57b7137d7698aaee41ce04bdf10096a35 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 28 Jul 2015 20:40:34 -0500 Subject: add ; to escaped chars in path --- src/rebar_utils.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index e53bc45..6855773 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}]). -- cgit v1.1