Merge pull request #61 from overleaf/spd-colon-passwords

GitBridge: Allow colons in passwords
This commit is contained in:
Shane Kilkelly 2019-05-29 10:33:38 +01:00 committed by GitHub
commit 545a9240d3

View file

@ -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];