summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-07-12 17:57:40 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-07-12 17:57:40 +0300
commit14c65a2c9e8c2017a62aacf2e276b42c1f2b0873 (patch)
treecccbe0241455900d0e9adc7035d6c41357be9685
parentf4efda74b67b37af92b1f2c4a2d9fdcec9b52531 (diff)
MAINT-8862 mailto URIs should be loaded in the external browser
-rw-r--r--indra/newview/llweb.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llweb.cpp b/indra/newview/llweb.cpp
index b816225b07..768db047a4 100644
--- a/indra/newview/llweb.cpp
+++ b/indra/newview/llweb.cpp
@@ -268,6 +268,12 @@ bool LLWeb::useExternalBrowser(const std::string &url)
boost::match_results<std::string::const_iterator> matches;
return !(boost::regex_search(uri_string, matches, pattern));
}
+ else
+ {
+ boost::regex pattern = boost::regex("^mailto:", boost::regex::perl | boost::regex::icase);
+ boost::match_results<std::string::const_iterator> matches;
+ return boost::regex_search(url, matches, pattern);
+ }
return false;
#endif
}