aboutsummaryrefslogtreecommitdiff
path: root/app/layout/header.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-06-20 20:49:48 +0200
committerGravatar GitHub <noreply@github.com> 2018-06-20 20:49:48 +0200
commitc4903bc8db41c0aed803e1bc183ade3eeb17aa8d (patch)
tree3718596d92d47aba5ac393e44cc92f4f698a5910 /app/layout/header.phtml
parent767ac77ee26316b183955c8bfd132df8ff11dfe1 (diff)
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
Diffstat (limited to 'app/layout/header.phtml')
-rw-r--r--app/layout/header.phtml3
1 files changed, 2 insertions, 1 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()) {
<?php if (FreshRSS_Auth::hasAccess() || FreshRSS_Context::$system_conf->allow_anonymous) { ?>
<form action="<?php echo _url('index', 'index'); ?>" method="get">
<div class="stick">
- <input type="search" name="search" id="search" class="extend" value="<?php echo FreshRSS_Context::$search; ?>" placeholder="<?php echo _t('gen.menu.search'); ?>" />
+ <input type="search" name="search" id="search" class="extend" value="<?php
+ echo htmlspecialchars(htmlspecialchars_decode(FreshRSS_Context::$search), ENT_COMPAT, 'UTF-8'); ?>" placeholder="<?php echo _t('gen.menu.search'); ?>" />
<?php $get = Minz_Request::param('get', ''); ?>
<?php if ($get != '') { ?>