do not crash on unmatched request

SVN Revision: 2406
This commit is contained in:
Evgeniy Khramtsov 2009-07-30 13:08:26 +00:00
parent f4330e9ed3
commit cd68e0021e
1 changed files with 4 additions and 1 deletions

View File

@ -239,7 +239,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).
%%====================================================================