mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed domain parsing regex on BrowserAction SetCookies.
This commit is contained in:
@@ -269,7 +269,7 @@ namespace RuriLib
|
||||
break;
|
||||
|
||||
case BrowserAction.SetCookies:
|
||||
var baseURL = Regex.Match(ReplaceValues(input, data), "^(?:https?:\\/\\/)?(?:[^@\\/\n]+@)?(?:www\\.)?([^:\\/?\n]+)").Groups[1].Value;
|
||||
var baseURL = Regex.Match(ReplaceValues(input, data), "^(?:https?:\\/\\/)?(?:[^@\\/\n]+@)?([^:\\/?\n]+)").Groups[1].Value;
|
||||
foreach (var cookie in data.Cookies)
|
||||
{
|
||||
try { data.Driver.Manage().Cookies.AddCookie(new Cookie(cookie.Key, cookie.Value, baseURL, "/", DateTime.MaxValue)); } catch { }
|
||||
|
||||
Reference in New Issue
Block a user