diff options
author | Rider Linden <rider@lindenlab.com> | 2019-02-08 22:10:07 +0000 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2019-02-08 22:10:07 +0000 |
commit | a1c2d021261d38de7dabd0863dd264ac3bf50523 (patch) | |
tree | 3b09e4412ccac313dd93adff2d14d1c766b5686a /indra/newview/llweb.cpp | |
parent | c8d8414b3b2e83fbaffd6e48f55ca14a3cb27ca4 (diff) | |
parent | 0a7bc35335666cc310ef900d4e4144c658b92522 (diff) |
Merged in graham_linden/viewer-eep-fixes (pull request #273)
SL-10478, SL-10486, SL-10501, SL-10415, SL-10487
Diffstat (limited to 'indra/newview/llweb.cpp')
-rw-r--r-- | indra/newview/llweb.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/indra/newview/llweb.cpp b/indra/newview/llweb.cpp index 768db047a4..2760ebd1df 100644 --- a/indra/newview/llweb.cpp +++ b/indra/newview/llweb.cpp @@ -268,12 +268,9 @@ 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; + + 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); #endif } |