Skip to content

Commit 671fb76

Browse files
authored
Merge pull request #64 from nguyenanhung/v3.2.0-develop
V3.2.0 develop
2 parents 84e2da6 + 8631db6 commit 671fb76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

system/core/Input.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ public function is_cli_request()
907907
public function method($upper = FALSE)
908908
{
909909
return ($upper)
910-
? strtoupper($this->server('REQUEST_METHOD'))
911-
: strtolower($this->server('REQUEST_METHOD'));
910+
? strtoupper((string) $this->server('REQUEST_METHOD'))
911+
: strtolower((string) $this->server('REQUEST_METHOD'));
912912
}
913913

914914
// ------------------------------------------------------------------------

system/core/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function __construct()
221221
public function csrf_verify()
222222
{
223223
// If it's not a POST request we will set the CSRF cookie
224-
if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') {
224+
if (strtoupper((string) $_SERVER['REQUEST_METHOD']) !== 'POST') {
225225
return $this->csrf_set_cookie();
226226
}
227227

0 commit comments

Comments
 (0)