From 35c1c3774cdb635612dce0b035f33cda21876877 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 30 Jul 2009 13:10:01 +0000 Subject: [PATCH] do not crash on unmatched request SVN Revision: 2407 --- src/ejabberd_captcha.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_captcha.erl b/src/ejabberd_captcha.erl index 3406cabaf..07e2a44c6 100644 --- a/src/ejabberd_captcha.erl +++ b/src/ejabberd_captcha.erl @@ -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