Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Hink <info@karelhink.cz>2021-07-30 22:28:52 +0300
committerKarel Hink <info@karelhink.cz>2021-07-30 22:28:52 +0300
commit18cc6c11b51b94ef0e2be55a0cf11de920b87870 (patch)
tree47cd6e9e85560720b3c0184024b43962156f50a5 /lib/private/Route
parent7170c03f0e11a2f7385d909cd0b98f90e0ce984c (diff)
Fix Lots of Error: file_exists(): open_basedir restriction in effect. in Log
Signed-off-by: Karel Hink <info@karelhink.cz>
Diffstat (limited to 'lib/private/Route')
-rw-r--r--lib/private/Route/Router.php5
1 files changed, 3 insertions, 2 deletions
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 = [];