Sync with future branch for urls
This commit is contained in:
@@ -338,7 +338,7 @@ std::string LLUrlEntryHTTPNoProtocol::getTooltip(const std::string &url) const
|
|||||||
LLUrlEntryInvalidSLURL::LLUrlEntryInvalidSLURL()
|
LLUrlEntryInvalidSLURL::LLUrlEntryInvalidSLURL()
|
||||||
: LLUrlEntryBase()
|
: LLUrlEntryBase()
|
||||||
{
|
{
|
||||||
mPattern = boost::regex("(http://(maps.secondlife.com|slurl.com)/secondlife/|secondlife://(/app/(worldmap|teleport)/)?)[^ /]+(/-?[0-9]+){1,3}(/?(\\?\\S*)?)?",
|
mPattern = boost::regex("(https?://(maps.secondlife.com|slurl.com)/secondlife/|secondlife://(/app/(worldmap|teleport)/)?)[^ /]+(/-?[0-9]+){1,3}(/?(\\?\\S*)?)?",
|
||||||
boost::regex::perl|boost::regex::icase);
|
boost::regex::perl|boost::regex::icase);
|
||||||
mMenuName = "menu_url_http.xml";
|
mMenuName = "menu_url_http.xml";
|
||||||
mTooltip = LLTrans::getString("TooltipHttpUrl");
|
mTooltip = LLTrans::getString("TooltipHttpUrl");
|
||||||
@@ -425,7 +425,7 @@ bool LLUrlEntryInvalidSLURL::isSLURLvalid(const std::string &url) const
|
|||||||
LLUrlEntrySLURL::LLUrlEntrySLURL()
|
LLUrlEntrySLURL::LLUrlEntrySLURL()
|
||||||
{
|
{
|
||||||
// see http://slurl.com/about.php for details on the SLURL format
|
// see http://slurl.com/about.php for details on the SLURL format
|
||||||
mPattern = boost::regex("http://(maps.secondlife.com|slurl.com)/secondlife/[^ /]+(/\\d+){0,3}(/?(\\?\\S*)?)?",
|
mPattern = boost::regex("https?://(maps.secondlife.com|slurl.com)/secondlife/[^ /]+(/\\d+){0,3}(/?(\\?\\S*)?)?",
|
||||||
boost::regex::perl|boost::regex::icase);
|
boost::regex::perl|boost::regex::icase);
|
||||||
mMenuName = "menu_url_slurl.xml";
|
mMenuName = "menu_url_slurl.xml";
|
||||||
mTooltip = LLTrans::getString("TooltipSLURL");
|
mTooltip = LLTrans::getString("TooltipSLURL");
|
||||||
|
|||||||
Reference in New Issue
Block a user