FILTER_SANITIZE_STRING is deprecated in PHP 8.1+

This commit is contained in:
Alexandre
2025-10-12 16:25:36 +02:00
committed by Nachtzuster
parent f16114736b
commit 6ef96d1c9e
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
/* Basic input sanitation */
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING) ?: [];
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING) ?: [];
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_FULL_SPECIAL_CHARS) ?: [];
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_FULL_SPECIAL_CHARS) ?: [];
require_once __DIR__ . '/common.php';
ensure_authenticated();