mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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:
parent
2af52abdba
commit
fa18b35df5
@ -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
|
||||||
|
@ -908,8 +908,13 @@ process_admin(Host,
|
|||||||
#request{path = ["user", U],
|
#request{path = ["user", U],
|
||||||
q = Query,
|
q = Query,
|
||||||
lang = Lang}) ->
|
lang = Lang}) ->
|
||||||
Res = user_info(U, Host, Query, Lang),
|
case ejabberd_auth:is_user_exists(U, Host) of
|
||||||
make_xhtml(Res, Host, Lang);
|
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,
|
process_admin(Host,
|
||||||
#request{path = ["nodes"],
|
#request{path = ["nodes"],
|
||||||
|
Loading…
Reference in New Issue
Block a user