From d51f2fecfcc625636ac4ccfbd6d596ee6a5c40f1 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 16 May 2019 10:03:27 +0100 Subject: [PATCH] Allow colons in passwords bug: overleaf/issues#1393 --- .../src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java index 0a553be2cc..dfcfdf21be 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/server/Oauth2Filter.java @@ -131,7 +131,7 @@ public class Oauth2Filter implements Filter { Base64.decodeBase64(st.nextToken()), "UTF-8" ); - String[] split = credentials.split(":"); + String[] split = credentials.split(":",2); if (split.length == 2) { String username = split[0]; String password = split[1];