Skip to content

Commit

Permalink
fix: forceSecureAccess() position
Browse files Browse the repository at this point in the history
It was before the event `pre_system`.
  • Loading branch information
kenjis committed Oct 19, 2023
1 parent eec5ed2 commit 7f47f0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon

$this->getRequestObject();
$this->getResponseObject();
$this->forceSecureAccess();

Events::trigger('pre_system');

Expand All @@ -354,8 +355,6 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon
$this->response = $possibleResponse;
} else {
try {
$this->forceSecureAccess();

$this->response = $this->handleRequest($routes, config(Cache::class), $returnResponse);
} catch (ResponsableInterface|DeprecatedRedirectException $e) {
$this->outputBufferingEnd();
Expand Down

0 comments on commit 7f47f0f

Please sign in to comment.