invisnik / laravel-steam-auth

Laravel Steam Auth
MIT License
172 stars 69 forks source link

Steam Auth not working because of double encoded URLs #47

Closed Mechtecs closed 7 years ago

Mechtecs commented 7 years ago

I dont know why, but for whatever reason i get a login request from steam with a double encoded URL.

Mechtecs commented 7 years ago

My hotfix for this bug:

public function __construct(Request $request)

{

    $this->request = $request;

    $parameters = $this->request->all();

    foreach($this->request->request->all() as $k => $v) {

            $this->request->request->set($k, urldecode($v));

    }

    $this->authUrl = $this->buildUrl(url(Config::get('steam-auth.redirect_url'), [],

        Config::get('steam-auth.https')));

    $this->guzzleClient  = new GuzzleClient;

}
MypowerHD commented 7 years ago

in witch file do you make the Hotfix?! @Mechtecs

Mechtecs commented 7 years ago

SteamAuth.php @MypowerHD