Skip to content

Commit fd8bf1c

Browse files
committed
Changed calling input->server() function twice
1 parent 8122c82 commit fd8bf1c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

application/libraries/REST_Controller.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,12 +1904,8 @@ protected function _prepare_digest_auth()
19041904

19051905
// We need to test which server authentication variable to use,
19061906
// because the PHP ISAPI module in IIS acts different from CGI
1907-
$digest_string = '';
1908-
if ($this->input->server('PHP_AUTH_DIGEST'))
1909-
{
1910-
$digest_string = $this->input->server('PHP_AUTH_DIGEST');
1911-
}
1912-
elseif ($this->input->server('HTTP_AUTHORIZATION'))
1907+
$digest_string = $this->input->server('PHP_AUTH_DIGEST');
1908+
if ($digest_string === NULL)
19131909
{
19141910
$digest_string = $this->input->server('HTTP_AUTHORIZATION');
19151911
}

0 commit comments

Comments
 (0)