aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-09 00:25:04 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-04-09 00:25:04 +0200
commit0ce43be9de5bf676ceffa2e419941863f98fa970 (patch)
tree5ba88fe364fda8fe852ad671aba14edc45cfcc04 /lib
parent8af3c9841e7040b91282f24cdccc0e215c52ceef (diff)
Multi-user token
https://github.com/FreshRSS/FreshRSS/issues/1390 https://github.com/FreshRSS/FreshRSS/issues/366
Diffstat (limited to 'lib')
-rw-r--r--lib/lib_rss.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 4298e90bf..247cc707b 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -334,6 +334,9 @@ function max_registrations_reached() {
* @return a Minz_Configuration object, null if the configuration cannot be loaded.
*/
function get_user_configuration($username) {
+ if (!FreshRSS_user_Controller::checkUsername($username)) {
+ return null;
+ }
$namespace = 'user_' . $username;
try {
Minz_Configuration::register($namespace,