summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-03-12 01:36:42 +0200
committerdweller <dweller@cabin.digital>2024-03-12 01:36:42 +0200
commit00d13178df1b85d621f1789a50feb89e06217143 (patch)
tree997d1cab37509caa0bd597515ced4ff157f15a66 /common.php
parent3bfe2491e5930d40ef7691bea17c19a9ec64719a (diff)
if using older PHP version (like 7), the default flags for htmlspecialchars() are suboptimal, _sigh_HEADmaster
Diffstat (limited to 'common.php')
-rw-r--r--common.php1
1 files changed, 1 insertions, 0 deletions
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)