Browse Source

[i18n] fix addresshelper

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1657/head
R4SAS 4 years ago
parent
commit
2db035d23c
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 3
      libi2pd_client/HTTPProxy.cpp

3
libi2pd_client/HTTPProxy.cpp

@ -217,7 +217,8 @@ namespace proxy { @@ -217,7 +217,8 @@ namespace proxy {
b64 = i2p::http::UrlDecode(value);
// if we need update exists, request formed with update param
if (params["update"] == "true") { len += std::strlen("&update=true"); confirm = true; }
url.query.replace(pos - 1, len + 1, ""); // +-1 for taking ? and & before parameter
if (pos != 0 && url.query[pos-1] == '&') { pos--; len++; } // if helper is not only one query option
url.query.replace(pos, len, "");
return true;
}

Loading…
Cancel
Save