From d951ae7b726e0f159444fb9b589e2206704aef30 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 20 Dec 2012 17:05:26 -0500 Subject: [PATCH] IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> deprecated --- .../WEB-INF/src/org/adempiere/webui/apps/AEnv.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java index 4f844f57dd..555e1a1acd 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AEnv.java @@ -595,7 +595,7 @@ public final class AEnv } /** - * @return true if user agent is internet explorer 7 or lower + * @return true if user agent is internet explorer */ public static boolean isInternetExplorer() { @@ -605,7 +605,11 @@ public final class AEnv Object n = execution.getNativeRequest(); if (n instanceof ServletRequest) { - return Servlets.isExplorer((ServletRequest) n); + String browser = Servlets.getBrowser((ServletRequest) n); + if (browser != null && browser.equals("ie")) + return true; + else + return false; } return false; }