From 18cc6c11b51b94ef0e2be55a0cf11de920b87870 Mon Sep 17 00:00:00 2001 From: Karel Hink Date: Fri, 30 Jul 2021 19:28:52 +0000 Subject: Fix Lots of Error: file_exists(): open_basedir restriction in effect. in Log Signed-off-by: Karel Hink --- lib/private/Route/Router.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/private/Route') diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index 0bccb8190cd..fcde8f08897 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -130,8 +130,9 @@ class Router implements IRouter { if (isset($this->loadedApps[$app])) { return; } - $file = \OC_App::getAppPath($app) . '/appinfo/routes.php'; - if ($file !== false && file_exists($file)) { + $appPath = \OC_App::getAppPath($app); + $file = $appPath . '/appinfo/routes.php'; + if ($appPath !== false && file_exists($file)) { $routingFiles = [$app => $file]; } else { $routingFiles = []; -- cgit v1.2.3