From b5300e2ed511426bc72e092b7af4d2951df413b9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 16 Jun 2018 11:25:48 +0200 Subject: Start version 1.11.2-dev --- CHANGELOG.md | 3 +++ constants.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84ab9fc95..9156b9e5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # FreshRSS changelog +## 2018-XX-XX FreshRSS 1.11.2-dev + + ## 2018-06-16 FreshRSS 1.11.1 * Features diff --git a/constants.php b/constants.php index 7fedc0d59..8b8422421 100644 --- a/constants.php +++ b/constants.php @@ -2,7 +2,7 @@ //NB: Do not edit; use ./constants.local.php instead. // -define('FRESHRSS_VERSION', '1.11.1'); +define('FRESHRSS_VERSION', '1.11.2-dev'); define('FRESHRSS_WEBSITE', 'https://freshrss.org'); define('FRESHRSS_WIKI', 'https://freshrss.github.io/FreshRSS/'); -- cgit v1.2.3 From 44ee5ec70cfac8860dc5c2af9cc5e7518b147d07 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 18 Jun 2018 22:55:41 +0200 Subject: [#1928] Login user automatically after creation (#1941) --- app/Controllers/userController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php index 47f0ecc62..75a4303d6 100644 --- a/app/Controllers/userController.php +++ b/app/Controllers/userController.php @@ -230,6 +230,17 @@ class FreshRSS_user_Controller extends Minz_ActionController { $_POST['new_user_passwordPlain'] = ''; invalidateHttpCache(); + // If the user has admin access, it means he's already logged in + // and we don't want to login with the new account. Otherwise, the + // user just created its account himself so he probably wants to + // get started immediately. + if ($ok && !FreshRSS_Auth::hasAccess('admin')) { + $user_conf = get_user_configuration($new_user_name); + Minz_Session::_param('currentUser', $new_user_name); + Minz_Session::_param('passwordHash', $user_conf->passwordHash); + FreshRSS_Auth::giveAccess(); + } + $notif = array( 'type' => $ok ? 'good' : 'bad', 'content' => _t('feedback.user.created' . (!$ok ? '.error' : ''), $new_user_name) -- cgit v1.2.3 From 767ac77ee26316b183955c8bfd132df8ff11dfe1 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 18 Jun 2018 22:56:58 +0200 Subject: [#1942] Track missing index files (#1943) These files must exist for security reasons: they hide contents of their directories if the webserver isn't well configured and redirect to the home page. They were automatically created by `./cli/prepare.php` script so it was annoying to have them in the working tree. Also, the files created by the script were empty. --- data/PubSubHubbub/feeds/index.html | 13 +++++++++++++ data/PubSubHubbub/index.html | 13 +++++++++++++ data/PubSubHubbub/keys/index.html | 13 +++++++++++++ data/users/_/index.html | 13 +++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 data/PubSubHubbub/feeds/index.html create mode 100644 data/PubSubHubbub/index.html create mode 100644 data/PubSubHubbub/keys/index.html create mode 100644 data/users/_/index.html diff --git a/data/PubSubHubbub/feeds/index.html b/data/PubSubHubbub/feeds/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/data/PubSubHubbub/feeds/index.html @@ -0,0 +1,13 @@ + + + + + +Redirection + + + + +

Redirection

+ + diff --git a/data/PubSubHubbub/index.html b/data/PubSubHubbub/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/data/PubSubHubbub/index.html @@ -0,0 +1,13 @@ + + + + + +Redirection + + + + +

Redirection

+ + diff --git a/data/PubSubHubbub/keys/index.html b/data/PubSubHubbub/keys/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/data/PubSubHubbub/keys/index.html @@ -0,0 +1,13 @@ + + + + + +Redirection + + + + +

Redirection

+ + diff --git a/data/users/_/index.html b/data/users/_/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/data/users/_/index.html @@ -0,0 +1,13 @@ + + + + + +Redirection + + + + +

Redirection

+ + -- cgit v1.2.3 From c4903bc8db41c0aed803e1bc183ade3eeb17aa8d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 20 Jun 2018 20:49:48 +0200 Subject: Fix double encoding for mark as read a search (#1945) * Fix double encoding for mark as read a search Fix https://github.com/FreshRSS/FreshRSS/issues/1944 * Fix more search encoding issues --- app/layout/header.phtml | 3 ++- app/layout/nav_menu.phtml | 5 +++-- app/views/helpers/pagination.phtml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/layout/header.phtml b/app/layout/header.phtml index e589ed7ef..3eb8b984d 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -25,7 +25,8 @@ if (FreshRSS_Auth::accessNeedsAction()) { allow_anonymous) { ?>
- + diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index ab82c723f..f8a2376ec 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -75,7 +75,7 @@ 'get' => $get, 'nextGet' => FreshRSS_Context::$next_get, 'idMax' => FreshRSS_Context::$id_max, - 'search' => FreshRSS_Context::$search, + 'search' => htmlspecialchars_decode(FreshRSS_Context::$search, ENT_QUOTES), 'state' => FreshRSS_Context::$state, ) ); @@ -162,7 +162,8 @@