bug 7251: block IE6 from accessing /client/console

status 7251: resolved fixed
This commit is contained in:
will 2010-11-19 19:24:13 -08:00
parent 79ec408658
commit 79faeb0846
1 changed files with 11 additions and 0 deletions

View File

@ -78,6 +78,17 @@ public class ConsoleProxyServlet extends HttpServlet {
params.putAll(req.getParameterMap());
HttpSession session = req.getSession(false);
// Disabling IE6 support
String ua = req.getHeader( "User-Agent" );
if (ua.contains("MSIE 6")) {
if (s_logger.isDebugEnabled()) {
s_logger.debug("Console access attempted with IE6 browser, rejecting access.");
}
sendResponse(resp, "Only IE7, IE8, FireFox 3.x, Chrome, and Safari browsers are supported at this time.");
return;
}
if(session == null) {
if(verifyRequest(params)) {
userId = (String)params.get("userId")[0];