25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

* 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> 2008-10-12 Badlop <badlop@process-one.net>
* src/web/ejabberd_web_admin.erl: Run new hook * src/web/ejabberd_web_admin.erl: Run new hook

View File

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