]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't use regular expresions for a simple string replace
authorRobin Appelman <icewind@owncloud.com>
Sat, 8 Sep 2012 21:40:23 +0000 (23:40 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sat, 8 Sep 2012 21:40:23 +0000 (23:40 +0200)
lib/base.php

index 1c6cc70b0e882187bfaea27c531342a24e953399..679acdb6e5d1e5a9596facbb4aae1af2102aa7b0 100644 (file)
@@ -75,7 +75,7 @@ class OC{
                        /** @TODO: Remove this when necessary
                         Remove "apps/" from inclusion path for smooth migration to mutli app dir
                        */
-                       $path = preg_replace('/apps\//', '', OC::$CLASSPATH[$className]);
+                       $path = str_replace('apps/', '', OC::$CLASSPATH[$className]);
                        require_once $path;
                }
                elseif(strpos($className, 'OC_')===0) {