mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
#4014: wrong string offset in HTTPCredentials::isNTLMCredentials
This commit is contained in:
parent
15c6631352
commit
00e157da43
@ -191,7 +191,7 @@ bool HTTPCredentials::isDigestCredentials(const std::string& header)
|
||||
|
||||
bool HTTPCredentials::isNTLMCredentials(const std::string& header)
|
||||
{
|
||||
return icompare(header, 0, 4, "NTLM") == 0 && (header.size() > 5 ? Poco::Ascii::isSpace(header[5]) : true);
|
||||
return icompare(header, 0, 4, "NTLM") == 0 && (header.size() > 4 ? Poco::Ascii::isSpace(header[4]) : true);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user