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_ --- common.php | 1 + 1 file changed, 1 insertion(+) (limited to 'common.php') diff --git a/common.php b/common.php index 82c59a6..5f7c05a 100644 --- a/common.php +++ b/common.php @@ -20,6 +20,7 @@ $section = trim($_GET['section'] ?? null); $arch = trim($_GET['arch'] ?? null); + $hsc_flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401; /* function dbg_print($data) -- cgit v1.2.3