fixup! Prevent SSRF requests By validating the provided URL before passing it to youtube-dl
This commit is contained in:
parent
732baccd63
commit
363bf9b08c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue