diff options
author | dweller <dweller@cabin.digital> | 2024-03-12 01:36:42 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-03-12 01:36:42 +0200 |
commit | 00d13178df1b85d621f1789a50feb89e06217143 (patch) | |
tree | 997d1cab37509caa0bd597515ced4ff157f15a66 /index.php | |
parent | 3bfe2491e5930d40ef7691bea17c19a9ec64719a (diff) |
if using older PHP version (like 7), the default flags for htmlspecialchars() are suboptimal, _sigh_HEADmaster
Diffstat (limited to '')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,7 +54,7 @@ <form action="/search.php"> <div id="query_wrap"> <div id="query_icon"></div> - <input id="query" type='search' value='<?php if($action === 'lmmtfy') echo htmlspecialchars($query);?>' name='query' autocorrect="off" autocapitalize="none" required autofocus/> + <input id="query" type='search' value='<?php if($action === 'lmmtfy') echo htmlspecialchars($query, $hsc_flags);?>' name='query' autocorrect="off" autocapitalize="none" required autofocus/> <button id="btn_def" type='submit' value='man' name='action' class="btn-def" aria-hidden="true" tabindex="-1"></button> <input type="checkbox" id="query_opts_toggle"/> <div id="query_opts"> @@ -81,7 +81,7 @@ if((strlen($arch) > 0) && ($arch == $a)) $sel = 'selected="selected"'; - $a = htmlspecialchars($a); + $a = htmlspecialchars($a, $hsc_flags); echo "<option value='$a' $sel>$a</option>"; } ?> |