diff options
author | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-19 16:40:52 +0300 |
---|---|---|
committer | VicDeo <victor.dubiniuk@gmail.com> | 2013-03-19 16:40:52 +0300 |
commit | c3a64012d83b424421555b642c2bd8c59bde82c1 (patch) | |
tree | 250cc3e0e994b3d90c64ab0a1d5f0ef1b42b6425 /lib | |
parent | e8100dc1a8f8b361d11cc0e82a18ade319092877 (diff) | |
download | nextcloud-server-c3a64012d83b424421555b642c2bd8c59bde82c1.tar.gz nextcloud-server-c3a64012d83b424421555b642c2bd8c59bde82c1.zip |
Remove leading and trailing backslashes in classname. Ref #2310
Diffstat (limited to 'lib')
-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 |