Search/Forms (#383)

* do not prefil search form with unchecked user input
 * thx @Endalaust
This commit is contained in:
Sarjuuk 2023-04-13 15:18:23 +02:00
parent 9f1cbc0233
commit 2c142c506c
5 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
<title><?=htmlentities(implode(' - ', $this->title)); ?></title>
<title><?=Util::htmlEscape(implode(' - ', $this->title)); ?></title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="SHORTCUT ICON" href="<?=STATIC_URL; ?>/images/logos/favicon.ico" />

View file

@ -19,14 +19,14 @@
<div class="header" id="header">
<div id="header-logo">
<a class="header-logo" href="."></a>
<h1><?=htmlentities($this->name); ?></h1>
<h1><?=Util::htmlEscape($this->name); ?></h1>
</div>
</div>
<div id="wrapper" class="wrapper">
<div class="toplinks linklist"><?php $this->brick('headerMenu'); ?></div>
<div class="toptabs" id="toptabs"></div>
<div class="topbar" id="topbar">
<div class="topbar-search"><form action="."><a href="javascript:;"></a><input name="search" size="35" id="livesearch-generic" value="<?=(isset($this->search) ? $this->search : ''); ?>" /></form></div>
<div class="topbar-search"><form action="."><a href="javascript:;"></a><input name="search" size="35" id="livesearch-generic" value="<?=Util::htmlEscape($this->search ?? ''); ?>" /></form></div>
<div class="topbar-browse" id="topbar-browse"></div>
<div class="topbar-buttons" id="topbar-buttons"></div>
</div>