diff --git a/lib/base.php b/lib/base.php index 0d33dbb163e5cdef5e14a557015fe0cd7662e2af..c921c45f4a1f09b18810395e8bd5f5773e7d2cb5 100644 --- a/lib/base.php +++ b/lib/base.php @@ -78,6 +78,8 @@ class OC { * SPL autoload */ public static function autoload($className) { + $className = trim ($className, '\\'); + if (array_key_exists($className, OC::$CLASSPATH)) { $path = OC::$CLASSPATH[$className]; /** @TODO: Remove this when necessary