diff options
author | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-19 17:40:52 +0400 |
---|---|---|
committer | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-31 16:49:43 +0400 |
commit | ed39e47c9d37850bff11661e978564e8aeb9a727 (patch) | |
tree | bcee3df197b020a768e126b56376a3983d8aef39 | |
parent | b9213cf451cf694ba3b2e7a89f3ff4377198e4e7 (diff) |
Remove leading and trailing backslashes in classname. Ref #2310
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 0d33dbb163e..c921c45f4a1 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 |