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

Delete spaces and new lines(entr)

parent c8874b20
...@@ -455,9 +455,7 @@ namespace Titanium.Web.Proxy.Network ...@@ -455,9 +455,7 @@ namespace Titanium.Web.Proxy.Network
{ {
try try
{ {
if ((isRootCertificate == false) && (saveFakeCertificates == true)) { if ((isRootCertificate == false) && (saveFakeCertificates == true)) {
string path = GetCertPath(); string path = GetCertPath();
string subjectName = System.Text.RegularExpressions.Regex.Replace(certificateName, @"^CN\s*=\s*", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase); string subjectName = System.Text.RegularExpressions.Regex.Replace(certificateName, @"^CN\s*=\s*", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
subjectName = subjectName.Replace("*", "$x$"); subjectName = subjectName.Replace("*", "$x$");
...@@ -480,12 +478,8 @@ namespace Titanium.Web.Proxy.Network ...@@ -480,12 +478,8 @@ namespace Titanium.Web.Proxy.Network
} }
} }
else { else {
certificate = this.makeCertificate(certificateName, isRootCertificate); certificate = this.makeCertificate(certificateName, isRootCertificate);
} }
} }
catch (Exception e) catch (Exception e)
{ {
......
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