Skip to content

Commit e211a7d

Browse files
committed
Prevent superglobals from being changed by users
1 parent 836d3d7 commit e211a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/HTTP/RedirectResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function withInput()
9393
{
9494
$session = service('session');
9595
$session->setFlashdata('_ci_old_input', [
96-
'get' => is_array($_GET) ? $_GET : [],
97-
'post' => is_array($_POST) ? $_POST : [],
96+
'get' => isset($_GET) ? $_GET : [],
97+
'post' => isset($_POST) ? $_POST : [],
9898
]);
9999

100100
$this->withErrors();

0 commit comments

Comments
 (0)