summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorEugene Mutavchi <emutavchi@productengine.com>2010-02-03 19:38:12 +0200
committerEugene Mutavchi <emutavchi@productengine.com>2010-02-03 19:38:12 +0200
commit8c1618ca5ae81eec0a5fa6229e89cd0f1a072a27 (patch)
treeb04fd3a34db8db2fbd94b6cefd93b98e9b878ebc /indra/newview/llviewermessage.cpp
parent7e1911baa23c2c7491c5089015d8f9b30df5ce01 (diff)
Fixed major bug EXT-4876 (Switch from slurl.com to maps.secondlife.com)
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index e525561b7d..143d95d27e 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -1478,6 +1478,11 @@ void inventory_offer_handler(LLOfferInfo* info)
// Strip any SLURL from the message display. (DEV-2754)
std::string msg = info->mDesc;
int indx = msg.find(" ( http://slurl.com/secondlife/");
+ if(indx == std::string::npos)
+ {
+ // try to find new slurl host
+ indx = msg.find(" ( http://maps.secondlife.com/secondlife/");
+ }
if(indx >= 0)
{
LLStringUtil::truncate(msg, indx);