fixup! Prevent SSRF requests By validating the provided URL before passing it to youtube-dl

This commit is contained in:
Pierre Rudloff 2022-02-27 23:36:51 +01:00
parent 732baccd63
commit 363bf9b08c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,6 @@
namespace Alltube\Controller;
use Alltube\Library\Exception\AlltubeLibraryException;
use Exception;
use Graby\HttpClient\Plugin\ServerSideRequestForgeryProtection\Exception\InvalidURLException;
use Slim\Http\Request;
use Slim\Http\Response;
@ -25,6 +24,7 @@ class JsonController extends BaseController
* @param Response $response PSR-7 response
*
* @return Response HTTP response
* @throws AlltubeLibraryException
*/
public function json(Request $request, Response $response): Response
{