Commit d74656f3 authored by mohammadlachgar's avatar mohammadlachgar Committed by GitHub

Add RegexOptions.IgnoreCase (FriendlyName)

parent 92431f92
......@@ -149,7 +149,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
{
try
{
x509Certificate.FriendlyName = System.Text.RegularExpressions.Regex.Replace(subjectName.ToLower(), @"^CN\s*=\s*", "");
x509Certificate.FriendlyName = System.Text.RegularExpressions.Regex.Replace(subjectName, @"^CN\s*=\s*", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
}
catch (PlatformNotSupportedException)
{
......@@ -210,9 +210,6 @@ namespace Titanium.Web.Proxy.Network.Certificate
}
}
/// <summary>
/// Makes the certificate internal.
/// </summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment