aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-02 04:46:40 -0700
committerJacek Antonelli2010-06-19 02:43:27 -0500
commitb98cf6f4139ee438294103dfed95d64fad2d4e2d (patch)
treeb7e2eca30345c15e2a5c0e29aeaf233081dbe80c /linden
parentDifferentiate between console and bubble chat opacity sliders in Preferences ... (diff)
downloadmeta-impy-b98cf6f4139ee438294103dfed95d64fad2d4e2d.zip
meta-impy-b98cf6f4139ee438294103dfed95d64fad2d4e2d.tar.gz
meta-impy-b98cf6f4139ee438294103dfed95d64fad2d4e2d.tar.bz2
meta-impy-b98cf6f4139ee438294103dfed95d64fad2d4e2d.tar.xz
Fixed #180: Grid manager fails to autofill grid info if the port doesn't end in a backslash
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/hippoGridManager.cpp8
1 files changed, 7 insertions, 1 deletions
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()
402{ 402{
403 if (mLoginUri == "") return false; 403 if (mLoginUri == "") return false;
404 404
405 // If last character in uri is not "/"
406 std::string uri = mLoginUri;
407 if (uri.compare(uri.length()-1, 1, "/") != 0)
408 {
409 uri += '/';
410 }
405 std::string reply; 411 std::string reply;
406 int result = HippoRestRequest::getBlocking(mLoginUri + "get_grid_info", &reply); 412 int result = HippoRestRequest::getBlocking(uri + "get_grid_info", &reply);
407 if (result != 200) return false; 413 if (result != 200) return false;
408 414
409 llinfos << "Received: " << reply << llendl; 415 llinfos << "Received: " << reply << llendl;