Lint
This commit is contained in:
parent
a426f3297a
commit
a6447e9813
1 changed files with 8 additions and 2 deletions
|
@ -231,11 +231,17 @@ class FrontController
|
||||||
$params = $request->getQueryParams();
|
$params = $request->getQueryParams();
|
||||||
if (isset($params['url'])) {
|
if (isset($params['url'])) {
|
||||||
try {
|
try {
|
||||||
$url = $this->download->getURL($params['url'], $request->getParam('format'), $this->sessionSegment->getFlash($params['url']));
|
$url = $this->download->getURL(
|
||||||
|
$params['url'],
|
||||||
|
$request->getParam('format'),
|
||||||
|
$this->sessionSegment->getFlash($params['url'])
|
||||||
|
);
|
||||||
|
|
||||||
return $response->withRedirect($url);
|
return $response->withRedirect($url);
|
||||||
} catch (PasswordException $e) {
|
} catch (PasswordException $e) {
|
||||||
return $response->withRedirect($this->container->get('router')->pathFor('video').'?url='.urlencode($params['url']));
|
return $response->withRedirect(
|
||||||
|
$this->container->get('router')->pathFor('video').'?url='.urlencode($params['url'])
|
||||||
|
);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$response->getBody()->write($e->getMessage());
|
$response->getBody()->write($e->getMessage());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue