MAINT-8862 mailto URIs should be loaded in the external browser

maxim_productengine 2018-07-12 17:57:40 +03:00
parent f4efda74b6
commit 14c65a2c9e
1 changed files with 6 additions and 0 deletions

View File

@ -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
}