Ticket #371: If the user is not found, throw a security excpetion.
This commit is contained in:
1 parent
8176d4309c
commit
d346c4c203
1 file changed
+3
-3
+3
-3
@@ -116,12 +116,12 @@ public class List extends AuthenticatingHttpServlet {
|
|||||||
|
|
||||||
// Get specific user
|
// Get specific user
|
||||||
user = users.get(username);
|
user = users.get(username);
|
||||||
if (user == null)
|
|
||||||
throw new GuacamoleSecurityException("No such user.");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
user = context.self();
|
user = context.self();
|
||||||
|
|
||||||
|
if (user == null)
|
||||||
|
throw new GuacamoleSecurityException("No such user.");
|
||||||
|
|
||||||
// Write XML content type
|
// Write XML content type
|
||||||
response.setHeader("Content-Type", "text/xml");
|
response.setHeader("Content-Type", "text/xml");
|
||||||
|
|||||||
Reference in new issue
Block a user