Ticket #371: If the user is not found, throw a security excpetion.

This commit is contained in:
James Muehlner
2013-06-25 10:55:17 -07:00
parent 8176d4309c
commit d346c4c203

View File

@@ -116,12 +116,12 @@ 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");