This commit is contained in:
Kruglov Pavel 2021-02-15 19:12:03 +03:00 committed by GitHub
parent 454b1e0d60
commit 28dec516ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,8 @@ void Connection::sendHello()
* Limiting number of possible characters in user-controlled part of handshake
* will mitigate this possibility but doesn't solve it completely.
*/
auto has_control_character = [](const std::string & s) {
auto has_control_character = [](const std::string & s)
{
for (auto c : s)
if (isControlASCII(c))
return true;