From 00d13178df1b85d621f1789a50feb89e06217143 Mon Sep 17 00:00:00 2001 From: dweller Date: Tue, 12 Mar 2024 01:36:42 +0200 Subject: if using older PHP version (like 7), the default flags for htmlspecialchars() are suboptimal, _sigh_ --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 951be29..229cce2 100644 --- a/index.php +++ b/index.php @@ -54,7 +54,7 @@
- ' name='query' autocorrect="off" autocapitalize="none" required autofocus/> + ' name='query' autocorrect="off" autocapitalize="none" required autofocus/>
@@ -81,7 +81,7 @@ if((strlen($arch) > 0) && ($arch == $a)) $sel = 'selected="selected"'; - $a = htmlspecialchars($a); + $a = htmlspecialchars($a, $hsc_flags); echo ""; } ?> -- cgit v1.2.3