mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Escape backslashes prior to escaping the quotes
This commit is contained in:
parent
07b20d16f8
commit
f3039c7a87
1 changed files with 3 additions and 2 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue