[Aimmath-commit] AIM/WEB-INF/java Alice.java,1.4,1.5
Brought to you by:
gustav_delius,
npstrick
From: <mav...@us...> - 2003-08-31 11:44:43
|
Update of /cvsroot/aimmath/AIM/WEB-INF/java In directory sc8-pr-cvs1:/tmp/cvs-serv22186 Modified Files: Alice.java Log Message: added -u flag for safari Index: Alice.java =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/java/Alice.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Alice.java 30 Aug 2003 22:40:55 -0000 1.4 --- Alice.java 31 Aug 2003 11:44:33 -0000 1.5 *************** *** 598,607 **** //get user agent String browser = request.getHeader("User-Agent").toLowerCase(); ! //this captures real mozilla and netscape 6+ only //and not even Opera that will identify as Mozilla ! //add more if needed ! if ( ( (browser.indexOf("mozilla/5.0") >= 0) && ! (browser.indexOf("gecko") >= 0) ) ) { --- 598,611 ---- //get user agent String browser = request.getHeader("User-Agent").toLowerCase(); + //System.out.println("Browser: " + browser); ! //this captures safari and real mozilla and netscape 6+ only //and not even Opera that will identify as Mozilla ! //add more if needed ! if ( ! ((browser.indexOf("mozilla/5.0") >= 0) && ! (browser.indexOf("gecko") >= 0)) ! || ! (browser.indexOf("safari") >= 0) ) { |