1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:14:40 +01:00

Self-restart bugfix

This commit is contained in:
Daniil Gentili 2019-07-11 20:18:08 +02:00
parent b5786a6502
commit 22bac48aee

View File

@ -117,7 +117,8 @@ trait Loop
$params = $_GET;
$params['MadelineSelfRestart'] = Tools::random_int();
list($url, $query) = explode($uri, '?', 2);
$url = explode($uri, '?', 2)[0] ?? '';
$query = http_build_query($params);
$uri = implode('?', [$url, $query]);