Fix typos.

This commit is contained in:
Michal Čihař
2005-12-09 12:15:38 +00:00
parent bffbf8c8bc
commit cde0c1670f

View File

@@ -117,9 +117,9 @@ function PMA_auth_check()
}
// Decode possibly encoded information (used by IIS/CGI/FastCGI)
if (empty($PHP_AUTH_PW) && substr($PHP_AUTH_USER, 0, 6) == 'Basic ') {
$usr_pass = base64_decode(substr($PMA_AUTH_USER, 6));
if (!empty($usr_pass) && !(strpos($usr_pass, ':') === FALSE)) {
if (strcmp(substr($PHP_AUTH_USER, 0, 6), 'Basic ') == 0) {
$usr_pass = base64_decode(substr($PHP_AUTH_USER, 6));
if (!empty($usr_pass) && strpos($usr_pass, ':') !== FALSE) {
list($PHP_AUTH_USER, $PHP_AUTH_PW) = explode(':', $usr_pass);
}
unset($usr_pass);