mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
recognize trailing padding as part of base64 address
This commit is contained in:
@@ -287,8 +287,17 @@ namespace proxy {
|
||||
}
|
||||
else
|
||||
{
|
||||
bool padding = false;
|
||||
for (auto& ch: jump)
|
||||
if (!i2p::data::IsBase64(ch)) return false;
|
||||
{
|
||||
if (ch == '=')
|
||||
padding = true;
|
||||
else
|
||||
{
|
||||
if (padding) return false; // other chars after padding
|
||||
if (!i2p::data::IsBase64(ch)) return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user