Skip to content
Snippets Groups Projects
Commit c3a64012 authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Remove leading and trailing backslashes in classname. Ref #2310

parent e8100dc1
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment