[Aimmath-commit] AIM/WEB-INF/java Alice.java,1.2.2.3,1.2.2.4
Brought to you by:
gustav_delius,
npstrick
From: <mav...@us...> - 2003-08-31 10:40:06
|
Update of /cvsroot/aimmath/AIM/WEB-INF/java In directory sc8-pr-cvs1:/tmp/cvs-serv12723 Modified Files: Tag: develop_2_1 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.2.2.3 retrieving revision 1.2.2.4 diff -C2 -d -r1.2.2.3 -r1.2.2.4 *** Alice.java 30 Aug 2003 16:54:31 -0000 1.2.2.3 --- Alice.java 31 Aug 2003 10:40:02 -0000 1.2.2.4 *************** *** 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) ) { |