aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-25 03:57:51 -0500
committerJacek Antonelli2009-09-25 15:55:23 -0500
commitdf2fd502ceb13d4699ca7a59ba6d13beb1cb3b00 (patch)
tree05c1ffa4a5850092b2bad221159243d09126768b
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.
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/newview/hippoGridManager.cpp9
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index f1c872b..b078776 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,11 @@
12009-09-25 Jacek Antonelli <jacek.antonelli@gmail.com> 12009-09-25 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * Fixed HippoGridInfo::cleanUpUri appending "/" stupidly.
4 It was appending it to an empty string, "/", "//", etc.
5
6 modified: linden/indra/newview/hippoGridManager.cpp
7
8
3 * Rearranged login screen and cleaned up XUI. 9 * Rearranged login screen and cleaned up XUI.
4 10
5 modified: linden/indra/newview/skins/default/xui/en-us/panel_login.xml 11 modified: linden/indra/newview/skins/default/xui/en-us/panel_login.xml
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