Browse Source

Check Auth: Unset temporary $name variable.

fusionate 1 year ago
parent
commit
e19f9a1265
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/check_auth.php

+ 1 - 0
resources/check_auth.php

@@ -84,6 +84,7 @@
 	foreach($conf['session.validate'] as $name) {
 		$server_array[$name] = $_SERVER[$name];
 	}
+	unset($name);
 
 //session validate: check to see if the session is valid
 	if ($_SESSION['authorized'] && $_SESSION["user_hash"] !== hash('sha256', implode($server_array))) {