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

do not crash on unmatched request

SVN Revision: 2407
This commit is contained in:
Evgeniy Khramtsov 2009-07-30 13:10:01 +00:00
parent 628b03f3c0
commit 35c1c3774c

View File

@ -241,8 +241,10 @@ process(_Handlers, #request{method='POST', q=Q, lang=Lang, path=[_, Id]}) ->
ejabberd_web:error(not_allowed);
captcha_not_found ->
ejabberd_web:error(not_found)
end.
end;
process(_Handlers, _Request) ->
ejabberd_web:error(not_found).
%%====================================================================
%% gen_server callbacks