mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
do not crash on unmatched request
SVN Revision: 2406
This commit is contained in:
parent
f4330e9ed3
commit
cd68e0021e
@ -239,7 +239,10 @@ process(_Handlers, #request{method='POST', q=Q, lang=Lang, path=[_, Id]}) ->
|
|||||||
ejabberd_web:error(not_allowed);
|
ejabberd_web:error(not_allowed);
|
||||||
captcha_not_found ->
|
captcha_not_found ->
|
||||||
ejabberd_web:error(not_found)
|
ejabberd_web:error(not_found)
|
||||||
end.
|
end;
|
||||||
|
|
||||||
|
process(_Handlers, _Request) ->
|
||||||
|
ejabberd_web:error(not_found).
|
||||||
|
|
||||||
|
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user