summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
Diffstat (limited to 'public.php')
-rw-r--r--public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public.php b/public.php
index b8701c0c0f2..332f55e960c 100644
--- a/public.php
+++ b/public.php
@@ -53,7 +53,7 @@ try {
$service = $request->getParam('service', '');
} else {
$pathInfo = trim($pathInfo, '/');
- list($service) = explode('/', $pathInfo);
+ [$service] = explode('/', $pathInfo);
}
$file = \OC::$server->getConfig()->getAppValue('core', 'public_' . strip_tags($service));
if ($file === '') {