25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Merge pull request #190 from hamano/mod_register_web_response_404

mod_register_web should response 404 instead of process crash.
This commit is contained in:
badlop 2014-04-30 12:42:43 +02:00
commit 65519cf262

View File

@ -140,7 +140,10 @@ process([<<"change_password">>],
list_to_binary([?T(<<"There was an error changing the password: ">>), list_to_binary([?T(<<"There was an error changing the password: ">>),
?T(get_error_text(Error))]), ?T(get_error_text(Error))]),
{404, [], ErrorText} {404, [], ErrorText}
end. end;
process(Path, _Request) ->
{404, [], "Not Found"}.
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
%%% CSS %%% CSS