Probably a smidgin more efficient this way around.

This commit is contained in:
Andrew McMillan 2012-01-14 19:10:09 +13:00
parent 329f8b51dc
commit 45eb571c15

View File

@ -53,7 +53,7 @@ class HTTPAuthSession {
if ( ! empty($_SERVER['PHP_AUTH_DIGEST'])) {
$this->DigestAuthSession();
}
else if ( isset($_SERVER["AUTHORIZATION"]) || isset($_SERVER['PHP_AUTH_USER']) ) {
else if ( isset($_SERVER['PHP_AUTH_USER']) || isset($_SERVER["AUTHORIZATION"]) ) {
$this->BasicAuthSession();
}
else if ( isset($c->http_auth_mode) && $c->http_auth_mode == "Digest" ) {