]> granicus.if.org Git - ejabberd/commitdiff
mod_register_web should response 404 instead of process crash.
authorHAMANO Tsukasa <hamano@cuspy.org>
Wed, 30 Apr 2014 04:39:17 +0000 (13:39 +0900)
committerHAMANO Tsukasa <hamano@cuspy.org>
Wed, 30 Apr 2014 04:39:17 +0000 (13:39 +0900)
src/mod_register_web.erl

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