]> source.dussan.org Git - gitblit.git/commitdiff
Adding a limit of 2 [user + pass] on the credential string split. This works around... 17/head
authorPeter Loron <peter.loron@docusign.com>
Tue, 8 May 2012 19:54:58 +0000 (12:54 -0700)
committerPeter Loron <peter.loron@docusign.com>
Tue, 8 May 2012 19:54:58 +0000 (12:54 -0700)
src/com/gitblit/AuthenticationFilter.java

index caa8a0749956f9d1b2c270752d494411da9b3a1d..50a67a087a9f9c28d6a04313489ec48f61d13d74 100644 (file)
@@ -103,7 +103,7 @@ public abstract class AuthenticationFilter implements Filter {
                        String credentials = new String(Base64.decode(base64Credentials),\r
                                        Charset.forName("UTF-8"));\r
                        // credentials = username:password\r
-                       final String[] values = credentials.split(":");\r
+                       final String[] values = credentials.split(":",2);\r
 \r
                        if (values.length == 2) {\r
                                String username = values[0];\r