From 16cbd5145315ea85194f802bff960aa8327e2a12 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 19 Jan 2016 16:14:44 +0300 Subject: [PATCH] [oauth] Fixed bug with invalid token (& was included in some cases). --- editor/osm_auth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/osm_auth.cpp b/editor/osm_auth.cpp index 7ce5af73a4..4e95ff2688 100644 --- a/editor/osm_auth.cpp +++ b/editor/osm_auth.cpp @@ -184,7 +184,7 @@ string OsmOAuth::SendAuthRequest(string const & requestTokenKey, SessionID const if (pos == string::npos) return string(); auto const end = callbackURL.find("&", pos); - return callbackURL.substr(pos + vKey.length(), end == string::npos ? end : end - pos - vKey.length()+ 1); + return callbackURL.substr(pos + vKey.length(), end == string::npos ? end : end - pos - vKey.length()); } TKeySecret OsmOAuth::FetchRequestToken() const