Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

1 participant

@TFrenzel

Adjusted the conditional so that 'MSIE 10' will result in a False statement
and allow IE 10 not to be redirected.

Travis Resolving Issue #3
Adjusted conditional so that 'MSIE 10' will result in a False statement
and allow IE 10 not to be redirected.
1aa37a1
@TFrenzel TFrenzel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 16, 2012
  1. Resolving Issue #3

    Travis authored
    Adjusted conditional so that 'MSIE 10' will result in a False statement
    and allow IE 10 not to be redirected.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/com/lastcalc/servlets/MainPageServlet.java
View
2  src/com/lastcalc/servlets/MainPageServlet.java
@@ -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;
}
Something went wrong with that request. Please try again.