Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving Issue #3 to allow IE 10 access. #17

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/com/lastcalc/servlets/MainPageServlet.java
Expand Up @@ -35,7 +35,7 @@ protected void doGet(final javax.servlet.http.HttpServletRequest req,
final javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException,
java.io.IOException {
final boolean skipUACheck = req.getParameterMap().containsKey("skipuacheck");
if (!skipUACheck && req.getHeader("User-Agent").contains("MSIE")) {
if (!skipUACheck && (req.getHeader("User-Agent").contains("MSIE") && !req.getHeader("User-Agent").contains("MSIE 10"))) {
resp.sendRedirect("/noie.html");
return;
}
Expand Down