velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r726228 - /velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java
Date Sat, 13 Dec 2008 16:11:14 GMT
Author: cbrisson
Date: Sat Dec 13 08:11:14 2008
New Revision: 726228

URL: http://svn.apache.org/viewvc?rev=726228&view=rev
Log:
removes an extra ';' for sorme user agents

Modified:
    velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java

Modified: velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java?rev=726228&r1=726227&r2=726228&view=diff
==============================================================================
--- velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java (original)
+++ velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/BrowserTool.java Sat
Dec 13 08:11:14 2008
@@ -937,6 +937,10 @@
             if (v.find())
             {
                 version = v.group(1);
+                if(version.endsWith(";"))
+                {
+                    version = version.substring(0,version.length()-1);
+                }
                 try
                 {
                     majorVersion = Integer.parseInt(v.group(2));



Mime
View raw message