Skip to content
Snippets Groups Projects
Unverified Commit cb2ea902 authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix infinite recursion

parent 2042707a
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,11 @@
function temporaryLoader($class)
{
// handle the upgrade to the latest version of XMLSecLibs using namespaces
if (strstr($class, 'XMLSec')) {
if (class_exists('\\RobRichards\\XMLSecLibs\\'.$class, true)) {
class_alias('\\RobRichards\\XMLSecLibs\\'.$class, $class);
if (strstr($class, 'XMLSec') && !strstr($class, '\\RobRichards\\XMLSecLibs\\')) {
$new = '\\RobRichards\\XMLSecLibs\\'.$class;
if (class_exists($new, false)) {
class_alias($new, $class);
SimpleSAML\Logger::warning("The class or interface '$original' is now using namespaces, please use '$new'.");
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment