Changeset 326 for binary-improvements/MapRendering/Web/OpenID.cs
- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/OpenID.cs
r325 r326 87 87 } 88 88 89 if (chainStatus.Status == X509ChainStatusFlags.UntrustedRoot && chainEl.Certificate == caCert) {89 if (chainStatus.Status == X509ChainStatusFlags.UntrustedRoot && chainEl.Certificate.Equals (caCert)) { 90 90 // This status is about the cert being an untrusted root certificate but the certificate is one of those we added, ignore 91 91 continue; … … 149 149 150 150 string steamIdString = getValue (_req, "openid.claimed_id"); 151 ulong steamId = 0;151 ulong steamId; 152 152 Match steamIdMatch = steamIdUrlMatcher.Match (steamIdString); 153 153 if (steamIdMatch.Success) { … … 190 190 191 191 HttpWebResponse response = (HttpWebResponse) request.GetResponse (); 192 string responseString = null;192 string responseString; 193 193 using (Stream st = response.GetResponseStream ()) { 194 194 using (StreamReader str = new StreamReader (st)) { … … 197 197 } 198 198 199 if (responseString. ToLower ().Contains("is_valid:true")) {199 if (responseString.ContainsCaseInsensitive ("is_valid:true")) { 200 200 return steamId; 201 201 }
Note:
See TracChangeset
for help on using the changeset viewer.