mod_register_web should response 404 instead of process crash.
This commit is contained in:
parent
ce22239d85
commit
0e0bd3329d
|
@ -140,7 +140,10 @@ process([<<"change_password">>],
|
||||||
list_to_binary([?T(<<"There was an error changing the password: ">>),
|
list_to_binary([?T(<<"There was an error changing the password: ">>),
|
||||||
?T(get_error_text(Error))]),
|
?T(get_error_text(Error))]),
|
||||||
{404, [], ErrorText}
|
{404, [], ErrorText}
|
||||||
end.
|
end;
|
||||||
|
|
||||||
|
process(Path, _Request) ->
|
||||||
|
{404, [], "Not Found"}.
|
||||||
|
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
%%% CSS
|
%%% CSS
|
||||||
|
|
Loading…
Reference in New Issue