diff options
author | Zach Copley <zach@status.net> | 2010-03-10 03:39:05 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-03-10 03:39:05 +0000 |
commit | 7f2253759ccdc5ab8698c447b29762314883db1a (patch) | |
tree | 6e864f8384b243ece5e24ace177a32f1ddcc97c8 /lib/apiauth.php | |
parent | 60e0f0426133544eaaea7ff84da5f02ca86bd8cc (diff) |
A blank username should never be allowed.
Diffstat (limited to 'lib/apiauth.php')
-rw-r--r-- | lib/apiauth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/apiauth.php b/lib/apiauth.php index f63c84d8f..32502399f 100644 --- a/lib/apiauth.php +++ b/lib/apiauth.php @@ -241,7 +241,7 @@ class ApiAuthAction extends ApiAction $realm = common_config('site', 'name') . ' API'; } - if (!isset($this->auth_user_nickname) && $required) { + if (empty($this->auth_user_nickname) && $required) { header('WWW-Authenticate: Basic realm="' . $realm . '"'); // show error if the user clicks 'cancel' |