From 46422e6dbeac4993a4750f1dfec16f8e22a1d876 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sat, 8 Sep 2012 23:40:23 +0200
Subject: [PATCH] don't use regular expresions for a simple string replace

---
 lib/base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index 1c6cc70b0e..679acdb6e5 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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) {
-- 
GitLab