From b98cf6f4139ee438294103dfed95d64fad2d4e2d Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 2 Jun 2010 04:46:40 -0700 Subject: Fixed #180: Grid manager fails to autofill grid info if the port doesn't end in a backslash --- linden/indra/newview/hippoGridManager.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linden/indra/newview/hippoGridManager.cpp b/linden/indra/newview/hippoGridManager.cpp index 60c33e8..10d115a 100644 --- a/linden/indra/newview/hippoGridManager.cpp +++ b/linden/indra/newview/hippoGridManager.cpp @@ -402,8 +402,14 @@ bool HippoGridInfo::retrieveGridInfo() { if (mLoginUri == "") return false; + // If last character in uri is not "/" + std::string uri = mLoginUri; + if (uri.compare(uri.length()-1, 1, "/") != 0) + { + uri += '/'; + } std::string reply; - int result = HippoRestRequest::getBlocking(mLoginUri + "get_grid_info", &reply); + int result = HippoRestRequest::getBlocking(uri + "get_grid_info", &reply); if (result != 200) return false; llinfos << "Received: " << reply << llendl; -- cgit v1.1