Allow colons in passwords

bug: overleaf/issues#1393
This commit is contained in:
Simon Detheridge 2019-05-16 10:03:27 +01:00
parent a2d041ffae
commit d51f2fecfc

View file

@ -131,7 +131,7 @@ public class Oauth2Filter implements Filter {
Base64.decodeBase64(st.nextToken()), Base64.decodeBase64(st.nextToken()),
"UTF-8" "UTF-8"
); );
String[] split = credentials.split(":"); String[] split = credentials.split(":",2);
if (split.length == 2) { if (split.length == 2) {
String username = split[0]; String username = split[0];
String password = split[1]; String password = split[1];