diff --git a/noKey/index.php b/noKey/index.php index af19f0f..8cb608e 100755 --- a/noKey/index.php +++ b/noKey/index.php @@ -9,7 +9,8 @@ $content = file_get_contents(KEYS_FILE); $keys = explode("\n", $content); $keysCount = count($keys); - $url = 'https://www.googleapis.com/youtube/v3/' . end(explode('/noKey/', $requestUri)) . '&key='; + $parts = explode('/noKey/', $requestUri); + $url = 'https://www.googleapis.com/youtube/v3/' . end($parts) . '&key='; $options = ['http' => ['ignore_errors' => true]]; $context = stream_context_create($options); /// is there any way someone may get the keys out ? could restrict syntax with the one of the official API but that's not that much clean