From: Nicolas LÅ“uillet Date: Mon, 10 Mar 2014 07:10:03 +0000 (+0100) Subject: [fix] test if user_id doesn't exist in feeds generation X-Git-Tag: 1.6.0^2~37 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=17b2afefad1947042cc9fbbb841c3a023d00d96d;p=github%2Fwallabag%2Fwallabag.git [fix] test if user_id doesn't exist in feeds generation --- diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 13492506..0c8e798c 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -1109,6 +1109,10 @@ class Poche $allowed_types = array('home', 'fav', 'archive', 'tag'); $config = $this->store->getConfigUser($user_id); + if ($config == null) { + die(_('User with this id (' . $user_id . ') does not exist.')); + } + if (!in_array($type, $allowed_types) || $token != $config['token']) { die(_('Uh, there is a problem while generating feeds.'));