|
|
@ -1564,6 +1564,12 @@ class TorrentController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
// Init torrent |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1643,6 +1649,12 @@ class TorrentController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
// Init torrent |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1764,6 +1776,12 @@ class TorrentController extends AbstractController |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Block crawler requests |
|
|
|
|
|
|
|
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers')))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
throw $this->createNotFoundException(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Init torrent |
|
|
|
// Init torrent |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
if (!$torrent = $torrentService->getTorrent($request->get('torrentId'))) |
|
|
|
{ |
|
|
|
{ |
|
|
|