Skip to content

Commit

Permalink
Merge pull request erlyaws#133 from olgeni/tilde_injection_fix
Browse files Browse the repository at this point in the history
Fix io:format call in yaws_compile.
  • Loading branch information
capflam committed Nov 29, 2012
2 parents 7061375 + 1cf4eeb commit 25b8e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yaws_compile.erl
Expand Up @@ -311,7 +311,7 @@ new_out_file(Line, C, Tail, GC) ->
?Debug("Writing outout file~s~n", [OutFile]),
{ok, Out} = file:open(OutFile, [write]),
ok = io:format(Out, "-module(\'~s\').~n-export([out/1]).~n~n", [Module]),
ok = io:format(Out, "-yawsfile('" ++ get(yfile) ++ "').~n",[]),
ok = io:format(Out, "-yawsfile(\'~s\').~n",[get(yfile)]),
io:format(Out, "%%~n%% code at line ~w from file ~s~n%%~n",
[Line, C#comp.infile]),
io:format(Out, "-import(yaws_api, [f/2, fl/1, postvar/2, queryvar/2])."
Expand Down

0 comments on commit 25b8e4c

Please sign in to comment.