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,13 +116,13 @@ public class List extends AuthenticatingHttpServlet {
|
||||
|
||||
// Get specific user
|
||||
user = users.get(username);
|
||||
if (user == null)
|
||||
throw new GuacamoleSecurityException("No such user.");
|
||||
|
||||
}
|
||||
else
|
||||
user = context.self();
|
||||
|
||||
if (user == null)
|
||||
throw new GuacamoleSecurityException("No such user.");
|
||||
|
||||
// Write XML content type
|
||||
response.setHeader("Content-Type", "text/xml");
|
||||
|
||||
|
Reference in New Issue
Block a user