MAINT-8855 FIXED Location SLURL gets truncated when using Help -> Report Bug to file JIRA
parent
eaf6d49aec
commit
4e84a7f951
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue