]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Return an http auth error, when a client sends in an invalid auth user, even when...
authorZach Copley <zach@status.net>
Fri, 26 Mar 2010 18:51:01 +0000 (18:51 +0000)
committerZach Copley <zach@status.net>
Fri, 26 Mar 2010 19:58:15 +0000 (19:58 +0000)
lib/apiauth.php

index 17f803a1ca9948bf7ac64fd4623b05d300dcf776..e78de618ee2a4eb1713278d2592a54efd828c127 100644 (file)
@@ -267,7 +267,7 @@ class ApiAuthAction extends ApiAction
 
             $this->access = self::READ_WRITE;
 
-            if (empty($this->auth_user) && $required) {
+            if (empty($this->auth_user) && ($required || isset($_SERVER['PHP_AUTH_USER']))) {
 
                 // basic authentication failed