Skip to content
Snippets Groups Projects
Commit f21b25df authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Avoid use of create_function, deprecated in PHP 7.2.

Fixes #656
parent 617bbdd9
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class sspmod_core_Auth_Process_PHP extends SimpleSAML_Auth_ProcessingFilter
assert(is_array($request));
assert(array_key_exists('Attributes', $request));
$function = create_function('&$attributes', $this->code);
$function = function(&$attributes) { eval($this->code); };
$function($request['Attributes']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment