Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>tags/v14.0.0beta1
@@ -176,7 +176,9 @@ abstract class AuthPublicShareController extends PublicShareController { | |||
$route = $this->getRoute('showShare'); | |||
if ($params === null) { | |||
$params = []; | |||
$params = [ | |||
'token' => $this->getToken(), | |||
]; | |||
} else { | |||
$params = json_decode($params, true); | |||
if (isset($params['_route'])) { |
@@ -83,6 +83,8 @@ class AuthPublicShareControllerTest extends \Test\TestCase { | |||
$this->controller->method('isAuthenticated') | |||
->willReturn(true); | |||
$this->controller->setToken('myToken'); | |||
$this->session->method('get') | |||
->willReturnMap(['public_link_authenticate_redirect', ['foo' => 'bar']]); | |||