]> granicus.if.org Git - ejabberd/commitdiff
Fix badarg issue on module update web site
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 5 Apr 2014 21:23:44 +0000 (23:23 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 5 Apr 2014 21:23:44 +0000 (23:23 +0200)
src/ejabberd_web_admin.erl

index 9f5a5f08f9a0c4b4a8d86e377168f5e574b57e7b..781c125dd6fd9bc5f19d112971838074c2f70143 100644 (file)
@@ -2183,7 +2183,7 @@ get_node(global, Node, [<<"update">>], Query, Lang) ->
               ?XCT(<<"h3">>, <<"Update script">>), FmtScript,
               ?XCT(<<"h3">>, <<"Low level update script">>),
               FmtLowLevelScript, ?XCT(<<"h3">>, <<"Script check">>),
-              ?XC(<<"pre">>, (iolist_to_binary(Check))),
+              ?XC(<<"pre">>, (jlib:atom_to_binary(Check))),
               ?BR,
               ?INPUTT(<<"submit">>, <<"update">>, <<"Update">>)])];
 get_node(Host, Node, NPath, Query, Lang) ->