Check Auth: Unset temporary $name variable.

This commit is contained in:
fusionate
2024-02-21 15:04:09 -07:00
parent 717ee2d8fc
commit dc0f985b2f
+1
View File
@@ -84,6 +84,7 @@
foreach($conf['session.validate'] as $name) { foreach($conf['session.validate'] as $name) {
$server_array[$name] = $_SERVER[$name]; $server_array[$name] = $_SERVER[$name];
} }
unset($name);
//session validate: check to see if the session is valid //session validate: check to see if the session is valid
if ($_SESSION['authorized'] && $_SESSION["user_hash"] !== hash('sha256', implode($server_array))) { if ($_SESSION['authorized'] && $_SESSION["user_hash"] !== hash('sha256', implode($server_array))) {