diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-06-21 14:48:37 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-06-21 14:48:37 -0600 |
commit | f3039c7a87af03e7e5f8b71f82f22d8072f5b298 (patch) | |
tree | 6f5d4ce7272cfd3876e8aa533c1f8c303ff849b7 | |
parent | 07b20d16f8ea447568c2733f29d62f174a89f3a0 (diff) |
Escape backslashes prior to escaping the quotes
-rw-r--r-- | src/rebar_reltool.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl index 19c7433..142c1d8 100644 --- a/src/rebar_reltool.erl +++ b/src/rebar_reltool.erl @@ -306,5 +306,6 @@ execute_overlay([Other | _Rest], _Vars, _BaseDir, _TargetDir) -> %% render(Bin, Context) -> %% Be sure to escape any double-quotes before rendering... - Str = re:replace(Bin, "\"", "\\\\\"", [global, {return,list}]), - mustache:render(Str, Context). + Str0 = re:replace(Bin, "\\\\", "\\\\\\", [global, {return, list}]), + Str1 = re:replace(Str0, "\"", "\\\\\"", [global, {return,list}]), + mustache:render(Str1, Context). |