diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-11-04 13:09:26 +0200 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-11-04 13:09:26 +0200 |
commit | 5ccf4a42527fb83cc316552535b04fd4b21f77a7 (patch) | |
tree | 2a5c8888f53720637b13701d9fafa9c4f689664e /indra/newview | |
parent | b1ef5dee93d9aa585544e271721f9b84ebf903a9 (diff) |
MAINT-4581 FIXED Flickr slurl links break on some regions with spaces in the region name
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterflickr.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llfloaterflickr.cpp b/indra/newview/llfloaterflickr.cpp index 36afab86b7..600606d838 100644 --- a/indra/newview/llfloaterflickr.cpp +++ b/indra/newview/llfloaterflickr.cpp @@ -51,7 +51,7 @@ #include "lltabcontainer.h" #include "llviewerparcelmgr.h" #include "llviewerregion.h" - +#include <boost/regex.hpp> static LLPanelInjector<LLFlickrPhotoPanel> t_panel_photo("llflickrphotopanel"); static LLPanelInjector<LLFlickrAccountPanel> t_panel_account("llflickraccountpanel"); @@ -345,7 +345,12 @@ void LLFlickrPhotoPanel::sendPhoto() std::string parcel_name = LLViewerParcelMgr::getInstance()->getAgentParcelName(); if (!parcel_name.empty()) { - photo_link_text += " at " + parcel_name; + boost::regex pattern = boost::regex("\\S\\.[a-zA-Z]{2,}"); + boost::match_results<std::string::const_iterator> matches; + if(!boost::regex_search(parcel_name, matches, pattern)) + { + photo_link_text += " at " + parcel_name; + } } photo_link_text += " in Second Life"; |