diff options
| author | 2019-09-18 13:03:53 +0200 | |
|---|---|---|
| committer | 2019-09-18 13:03:53 +0200 | |
| commit | 28ab89146be497a5018c217f198103eb9cfddd8b (patch) | |
| tree | 028807bc0da3c2b27adce45a7053a6542f310d75 /p/api | |
| parent | a2ed6626c2f4e85878f775abcac897a1fd3a1f42 (diff) | |
API Reeder compatibility (#2526)
https://github.com/FreshRSS/FreshRSS/issues/2513
Diffstat (limited to 'p/api')
| -rw-r--r-- | p/api/greader.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/p/api/greader.php b/p/api/greader.php index 4cf1b7b20..b6777796a 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -214,8 +214,10 @@ function token($conf) { function checkToken($conf, $token) { //http://code.google.com/p/google-reader-api/wiki/ActionToken $user = Minz_Session::param('currentUser', '_'); - if ($user !== '_' && $token == '') { - return true; //FeedMe //TODO: Check security consequences + if ($user !== '_' && ( //TODO: Check security consequences + $token == '' || //FeedMe + $token === 'x')) { //Reeder + return true; } if ($token === str_pad(sha1(FreshRSS_Context::$system_conf->salt . $user . $conf->apiPasswordHash), 57, 'Z')) { return true; |
