Skip to content

Commit

Permalink
Steam now uses HTTPS in the profile information field
Browse files Browse the repository at this point in the history
Steam has started returning an https steamcommunity url in the claimed id field.
  • Loading branch information
sheybey authored and BlackCetha committed Apr 7, 2018
1 parent 98a4d0e commit 2fb4ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steamauthOOP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static function validate()
$result = file_get_contents("https://steamcommunity.com/openid/login", false, $context);

// Validate wheather it's true and if we have a good ID
preg_match("#^http://steamcommunity.com/openid/id/([0-9]{17,25})#", $_GET['openid_claimed_id'], $matches);
preg_match("#^https?://steamcommunity.com/openid/id/([0-9]{17,25})#", $_GET['openid_claimed_id'], $matches);
$steamID64 = is_numeric($matches[1]) ? $matches[1] : 0;

// Return our final value
Expand Down

0 comments on commit 2fb4ad4

Please sign in to comment.