Merge pull request #713 from mariroz/dev

small xss vulnerability and translation ability fix
This commit is contained in:
Nicolas Lœuillet 2014-05-30 16:51:13 +02:00
commit 67a8848aed

View file

@ -1083,11 +1083,10 @@ class Poche
$config = $this->store->getConfigUser($user_id);
if ($config == null) {
die(_('User with this id (' . $user_id . ') does not exist.'));
die(sprintf(_('User with this id (%d) does not exist.'), $user_id));
}
if (!in_array($type, $allowed_types) ||
$token != $config['token']) {
if (!in_array($type, $allowed_types) || $token != $config['token']) {
die(_('Uh, there is a problem while generating feeds.'));
}
// Check the token