mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Ticket #371: If the user is not found, throw a security excpetion.
This commit is contained in:
@@ -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