mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #6452 from marc1706/ticket/17091
[ticket/17091] Limit doctrine/instantiator to 1.x versions
This commit is contained in:
commit
179dcd9642
4 changed files with 12 additions and 3 deletions
2
.github/setup-phpbb.sh
vendored
2
.github/setup-phpbb.sh
vendored
|
@ -31,6 +31,6 @@ php ../composer.phar install --dev --no-interaction
|
||||||
if [[ "$PHP_VERSION" =~ ^nightly$ || "$PHP_VERSION" =~ ^8 ]]
|
if [[ "$PHP_VERSION" =~ ^nightly$ || "$PHP_VERSION" =~ ^8 ]]
|
||||||
then
|
then
|
||||||
php ../composer.phar remove phpunit/dbunit --dev --update-with-dependencies \
|
php ../composer.phar remove phpunit/dbunit --dev --update-with-dependencies \
|
||||||
&& php ../composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 --dev --update-with-all-dependencies --ignore-platform-reqs
|
&& php ../composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 doctrine/instantiator:^1.4 --dev --update-with-all-dependencies --ignore-platform-reqs
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -548,7 +548,7 @@ jobs:
|
||||||
cd ${env:GITHUB_WORKSPACE}\phpBB
|
cd ${env:GITHUB_WORKSPACE}\phpBB
|
||||||
php ..\composer.phar install
|
php ..\composer.phar install
|
||||||
php ..\composer.phar remove phpunit/dbunit --dev --update-with-dependencies
|
php ..\composer.phar remove phpunit/dbunit --dev --update-with-dependencies
|
||||||
php ..\composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 --dev --update-with-all-dependencies --ignore-platform-reqs
|
php ..\composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 doctrine/instantiator:^1.4 --dev --update-with-all-dependencies --ignore-platform-reqs
|
||||||
cd ..
|
cd ..
|
||||||
- name: Setup database
|
- name: Setup database
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -31,6 +31,12 @@ $cron_type = $request->variable('cron_type', '');
|
||||||
|
|
||||||
$get_params_array = $request->get_super_global(\phpbb\request\request_interface::GET);
|
$get_params_array = $request->get_super_global(\phpbb\request\request_interface::GET);
|
||||||
|
|
||||||
|
/* @var $http_kernel \Symfony\Component\HttpKernel\HttpKernel */
|
||||||
|
$http_kernel = $phpbb_container->get('http_kernel');
|
||||||
|
|
||||||
|
/* @var $symfony_request \phpbb\symfony_request */
|
||||||
|
$symfony_request = $phpbb_container->get('symfony_request');
|
||||||
|
|
||||||
/** @var \phpbb\controller\helper $controller_helper */
|
/** @var \phpbb\controller\helper $controller_helper */
|
||||||
$controller_helper = $phpbb_container->get('controller.helper');
|
$controller_helper = $phpbb_container->get('controller.helper');
|
||||||
$cron_route = 'phpbb_cron_run';
|
$cron_route = 'phpbb_cron_run';
|
||||||
|
@ -42,6 +48,8 @@ try
|
||||||
Response::HTTP_MOVED_PERMANENTLY
|
Response::HTTP_MOVED_PERMANENTLY
|
||||||
);
|
);
|
||||||
$response->send();
|
$response->send();
|
||||||
|
$http_kernel->terminate($symfony_request, $response);
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
catch (RouteNotFoundException $exception)
|
catch (RouteNotFoundException $exception)
|
||||||
{
|
{
|
||||||
|
@ -68,3 +76,4 @@ $response = new Response(
|
||||||
$error_code
|
$error_code
|
||||||
);
|
);
|
||||||
$response->send();
|
$response->send();
|
||||||
|
$http_kernel->terminate($symfony_request, $response);
|
||||||
|
|
|
@ -420,7 +420,7 @@ class session
|
||||||
// Else check the autologin length... and also removing those having autologin enabled but no longer allowed board-wide.
|
// Else check the autologin length... and also removing those having autologin enabled but no longer allowed board-wide.
|
||||||
if (!$this->data['session_autologin'])
|
if (!$this->data['session_autologin'])
|
||||||
{
|
{
|
||||||
if ($this->data['session_time'] < $this->time_now - ($config['session_length'] + 60))
|
if ($this->data['session_time'] < $this->time_now - ((int) $config['session_length'] + 60))
|
||||||
{
|
{
|
||||||
$session_expired = true;
|
$session_expired = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue