Fixed bug in decodeHttpAuth() causing colons in a password (and everything afterwards) to be swallowed. Note: RFC 2617 explicitely allows colons in passwords, just not in usernames.

This commit is contained in:
Tobi Schäfer 2011-01-28 23:16:44 +01:00
parent 5774b583eb
commit a094f59a28

View file

@ -615,7 +615,12 @@ public class RequestTrans implements Serializable {
}
try {
httpPassword = tok.nextToken();
StringBuffer buf = new StringBuffer(tok.nextToken());
while (tok.hasMoreTokens()) {
buf.append(":");
buf.append(tok.nextToken());
}
httpPassword = buf.toString();
} catch (NoSuchElementException e) {
httpPassword = null;
}