Peter Loron
2012-05-08 2551e848373035202a0a34b864049bc7e565ba91
Adding a limit of 2 [user + pass] on the credential string split. This works around issues with passwords containing colons
1 files modified
2 ■■■ changed files
src/com/gitblit/AuthenticationFilter.java 2 ●●● patch | view | raw | blame | history
src/com/gitblit/AuthenticationFilter.java
@@ -103,7 +103,7 @@
            String credentials = new String(Base64.decode(base64Credentials),
                    Charset.forName("UTF-8"));
            // credentials = username:password
            final String[] values = credentials.split(":");
            final String[] values = credentials.split(":",2);
            if (values.length == 2) {
                String username = values[0];