]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't return true on requiresAuth if screen_name==='0'
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 8 Feb 2016 11:14:35 +0000 (12:14 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 8 Feb 2016 11:14:35 +0000 (12:14 +0100)
lib/apibareauthaction.php

index 2b1e13cca035ca3a439d3cb3c7e3cf3476f1d7d7..d5bcb59f10cbf30034fc808b884e6353d099fb55 100644 (file)
@@ -74,11 +74,8 @@ class ApiBareAuthAction extends ApiAuthAction
         }
 
         // check whether a user has been specified somehow
-        $id           = $this->arg('id');
-        $user_id      = $this->arg('user_id');
-        $screen_name  = $this->arg('screen_name');
-
-        if (empty($id) && empty($user_id) && empty($screen_name)) {
+        if (!$this->arg('id') && !$this->arg('user_id')
+                && mb_strlen($this->arg('screen_name'))===0) {
             return true;
         }