Update Loop.php

This commit is contained in:
Daniil Gentili 2019-07-07 13:00:29 +02:00 committed by GitHub
parent c1a8229ff3
commit c97b3e72d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ namespace danog\MadelineProto\Wrappers;
use Amp\Promise;
use danog\MadelineProto\Shutdown;
use danog\MadelineProto\Tools;
/**
* Manages logging in and out.
@ -114,7 +115,7 @@ trait Loop
$uri = $_SERVER['REQUEST_URI'];
$params = $_GET;
$params['MadelineSelfRestart'] = $this->random_int();
$params['MadelineSelfRestart'] = Tools::random_int();
list($url, $query) = explode($uri, '?', 2);
$query = http_build_query($params);