Browse Source

recognize trailing padding as part of base64 address

pull/1982/head
orignal 1 year ago
parent
commit
a6ee1e648e
  1. 9
      libi2pd_client/HTTPProxy.cpp

9
libi2pd_client/HTTPProxy.cpp

@ -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…
Cancel
Save