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:
parent
5774b583eb
commit
a094f59a28
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue