aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php6
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;