Merge pull request #3 from akrabat/fix-mr-reader-auth
Look for the api_key in $_COOKIE rather than $_REQUEST. Fix for Mr.Reader
This commit is contained in:
@@ -138,8 +138,8 @@ class FeverAPI extends Handler {
|
|||||||
file_put_contents(self::DEBUG_FILE,'auth POST: '.json_encode($output)."\n",FILE_APPEND);
|
file_put_contents(self::DEBUG_FILE,'auth POST: '.json_encode($output)."\n",FILE_APPEND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((strlen($apikey)==0)&&isset($_REQUEST['fever_auth'])) { // override for Mr.Reader when doing some stuff
|
if ((strlen($apikey)==0)&&isset($_COOKIE['fever_auth'])) { // override for Mr.Reader when doing some stuff
|
||||||
$apikey = $_REQUEST['fever_auth'];
|
$apikey = $_COOKIE['fever_auth'];
|
||||||
}
|
}
|
||||||
if (strlen($apikey)>0)
|
if (strlen($apikey)>0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user