mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
catch bad regex parse
This commit is contained in:
parent
01a64676b4
commit
23b3972503
@ -383,12 +383,16 @@ namespace Bit.Core.Services
|
||||
}
|
||||
break;
|
||||
case UriMatchType.RegularExpression:
|
||||
try
|
||||
{
|
||||
var regex = new Regex(u.Uri, RegexOptions.IgnoreCase, TimeSpan.FromSeconds(1));
|
||||
match = regex.IsMatch(url);
|
||||
if(match)
|
||||
{
|
||||
AddMatchingLogin(cipher, matchingLogins, matchingFuzzyLogins);
|
||||
}
|
||||
}
|
||||
catch(ArgumentException) { }
|
||||
break;
|
||||
case UriMatchType.Never:
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user