mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
recognize trailing padding as part of base64 address
This commit is contained in:
parent
575268d360
commit
a6ee1e648e
|
@ -287,8 +287,17 @@ namespace proxy {
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bool padding = false;
|
||||||
for (auto& ch: jump)
|
for (auto& ch: jump)
|
||||||
|
{
|
||||||
|
if (ch == '=')
|
||||||
|
padding = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (padding) return false; // other chars after padding
|
||||||
if (!i2p::data::IsBase64(ch)) return false;
|
if (!i2p::data::IsBase64(ch)) return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue