From c4903bc8db41c0aed803e1bc183ade3eeb17aa8d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 20 Jun 2018 20:49:48 +0200 Subject: [PATCH] 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 @@