Unverified Commit a1ab56e7 authored by mohammadlachgar's avatar mohammadlachgar Committed by GitHub

Add RegexOptions.IgnoreCase (FriendlyName)

parent 33ec65f4
...@@ -149,7 +149,7 @@ namespace Titanium.Web.Proxy.Network.Certificate ...@@ -149,7 +149,7 @@ namespace Titanium.Web.Proxy.Network.Certificate
{ {
try 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) catch (PlatformNotSupportedException)
{ {
...@@ -210,9 +210,6 @@ namespace Titanium.Web.Proxy.Network.Certificate ...@@ -210,9 +210,6 @@ namespace Titanium.Web.Proxy.Network.Certificate
} }
} }
/// <summary> /// <summary>
/// Makes the certificate internal. /// Makes the certificate internal.
/// </summary> /// </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