diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/hippoGridManager.cpp | 9 |
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 |
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 | ||