Permalink
Browse files

steamcommunity.com now forces HTTPS

what a time to be alive
  • Loading branch information...
Groruk committed Apr 6, 2018
1 parent ba8e983 commit 0d9ef4b5f7aebc72d5727d290db5f1d104ba66aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/steamopenid.php
@@ -39,13 +39,13 @@ function steamOauth()
{
$openid = new LightOpenID(SB_HOST);
if (!$openid->mode) {
$openid->identity = 'http://steamcommunity.com/openid';
$openid->identity = 'https://steamcommunity.com/openid';
header("Location: " . $openid->authUrl());
exit();
}
if ($openid->validate()) {
$ids = $openid->identity;
$ptn = "/^http:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";
$ptn = "/^https:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/";
preg_match($ptn, $ids, $matches);
if (!empty($matches[1])) {

0 comments on commit 0d9ef4b

Please sign in to comment.