mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-30 13:01:07 +00:00
small xss vulnerability and translation ability fix
This commit is contained in:
parent
8038b38802
commit
cbc75befb5
1 changed files with 20 additions and 21 deletions
|
@ -1083,11 +1083,10 @@ class Poche
|
||||||
$config = $this->store->getConfigUser($user_id);
|
$config = $this->store->getConfigUser($user_id);
|
||||||
|
|
||||||
if ($config == null) {
|
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) ||
|
if (!in_array($type, $allowed_types) || $token != $config['token']) {
|
||||||
$token != $config['token']) {
|
|
||||||
die(_('Uh, there is a problem while generating feeds.'));
|
die(_('Uh, there is a problem while generating feeds.'));
|
||||||
}
|
}
|
||||||
// Check the token
|
// Check the token
|
||||||
|
|
Loading…
Reference in a new issue