diff options
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/newview/hippoGridManager.cpp | 9 |
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 @@ | |||
1 | 2009-09-25 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2009-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 |
278 | void HippoGridInfo::cleanUpUri(std::string &uri) | 278 | void 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 | ||