diff options
| author | 2017-02-25 12:39:08 +0100 | |
|---|---|---|
| committer | 2017-02-25 12:39:08 +0100 | |
| commit | 271a1fdc8900a8b2c32675c22dce1cc458209de4 (patch) | |
| tree | 10f4e575e3d907b637f60128d270ac9a7576ce46 /app/Models/Feed.php | |
| parent | 2e871a0adf131f53dcf345ad2dda73bdf7c1a2c9 (diff) | |
Missing checkUsername and const patten
https://github.com/FreshRSS/FreshRSS/pull/1423
https://github.com/YunoHost-Apps/freshrss_ynh/issues/27#issuecomment-279792363
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 97cb1c47e..7a9cf8612 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -442,7 +442,7 @@ class FreshRSS_Feed extends Minz_Model { file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND); } $currentUser = Minz_Session::param('currentUser'); - if (ctype_alnum($currentUser) && !file_exists($path . '/' . $currentUser . '.txt')) { + if (FreshRSS_user_Controller::checkUsername($currentUser) && !file_exists($path . '/' . $currentUser . '.txt')) { touch($path . '/' . $currentUser . '.txt'); } } |
