summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-07-10 18:06:52 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-07-10 18:06:52 +0300
commit4e84a7f9517e9e10287490d3b96ed3c9cb24f45e (patch)
tree73d57dc4a05b3e80194e5728fa06fe90f33b87b5
parenteaf6d49aecfc8cbba4484c2ac81579a6f689c09d (diff)
MAINT-8855 FIXED Location SLURL gets truncated when using Help -> Report Bug to file JIRA
-rw-r--r--indra/newview/llviewermenu.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index f7250ffb66..ec851ddaf9 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -134,6 +134,7 @@
#include "llpathfindingmanager.h"
#include "llstartup.h"
#include "boost/unordered_map.hpp"
+#include <boost/regex.hpp>
#include "llcleanup.h"
using namespace LLAvatarAppearanceDefines;
@@ -8025,7 +8026,12 @@ void handle_report_bug(const LLSD& param)
LLUIString url(param.asString());
LLStringUtil::format_map_t replace;
- replace["[ENVIRONMENT]"] = LLURI::escape(LLAppViewer::instance()->getViewerInfoString(true));
+ std::string environment = LLAppViewer::instance()->getViewerInfoString(true);
+ boost::regex regex;
+ regex.assign("</?nolink>");
+ std::string stripped_env = boost::regex_replace(environment, regex, "");
+
+ replace["[ENVIRONMENT]"] = LLURI::escape(stripped_env);
LLSLURL location_url;
LLAgentUI::buildSLURL(location_url);
replace["[LOCATION]"] = LLURI::escape(location_url.getSLURLString());