* src/web/ejabberd_web_admin.erl: When requesting page of

nonexistent user, show 'Not Found' page (EJAB-771)

SVN Revision: 1644
This commit is contained in:
Badlop 2008-10-13 08:32:04 +00:00
parent 2af52abdba
commit fa18b35df5
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-10-13 Badlop <badlop@process-one.net>
* src/web/ejabberd_web_admin.erl: When requesting page of
nonexistent user, show 'Not Found' page (EJAB-771)
2008-10-12 Badlop <badlop@process-one.net>
* src/web/ejabberd_web_admin.erl: Run new hook

View File

@ -908,8 +908,13 @@ process_admin(Host,
#request{path = ["user", U],
q = Query,
lang = Lang}) ->
Res = user_info(U, Host, Query, Lang),
make_xhtml(Res, Host, Lang);
case ejabberd_auth:is_user_exists(U, Host) of
true ->
Res = user_info(U, Host, Query, Lang),
make_xhtml(Res, Host, Lang);
false ->
make_xhtml([?XCT("h1", "Not Found")], Host, Lang)
end;
process_admin(Host,
#request{path = ["nodes"],