aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-25 03:57:51 -0500
committerJacek Antonelli2009-09-25 15:55:23 -0500
commitdf2fd502ceb13d4699ca7a59ba6d13beb1cb3b00 (patch)
tree05c1ffa4a5850092b2bad221159243d09126768b /linden
parentRearranged login screen and cleaned up XUI. (diff)
downloadmeta-impy-df2fd502ceb13d4699ca7a59ba6d13beb1cb3b00.zip
meta-impy-df2fd502ceb13d4699ca7a59ba6d13beb1cb3b00.tar.gz
meta-impy-df2fd502ceb13d4699ca7a59ba6d13beb1cb3b00.tar.bz2
meta-impy-df2fd502ceb13d4699ca7a59ba6d13beb1cb3b00.tar.xz
Fixed HippoGridInfo::cleanUpUri appending "/" stupidly.
It was appending it to an empty string, "/", "//", etc.
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/hippoGridManager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/hippoGridManager.cpp b/linden/indra/newview/hippoGridManager.cpp
index c7693af..0208844 100644
--- a/linden/indra/newview/hippoGridManager.cpp
+++ b/linden/indra/newview/hippoGridManager.cpp
@@ -277,9 +277,14 @@ void HippoGridInfo::cleanUpGridNick(std::string &gridnick)
277// static 277// static
278void HippoGridInfo::cleanUpUri(std::string &uri) 278void HippoGridInfo::cleanUpUri(std::string &uri)
279{ 279{
280 std::string::size_type n = uri.rfind('/'); 280 if (uri.empty()) {
281 if ((n == std::string::npos) || (n < 10)) 281 return;
282 }
283
284 // If last character in uri is not "/"
285 if (uri.compare(uri.length()-1, 1, "/") != 0) {
282 uri += '/'; 286 uri += '/';
287 }
283} 288}
284 289
285 290