aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-03-10 10:10:46 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-03-11 14:05:31 +0000
commit51602ae8e278cfcb87518621e6f0c1ce1b08b6bf (patch)
treef611d06e6b7b68fa69f1bc3695c8116fad6c4275
parentc4a17a6bc8a333af18aa98e1d06f7613ed6fb6f7 (diff)
downloadnextcloud-server-backport/51365/stable31.tar.gz
nextcloud-server-backport/51365/stable31.zip
fix(dav): Fix share token pattern for base uri extractionbackport/51365/stable31
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--apps/dav/appinfo/v2/publicremote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v2/publicremote.php b/apps/dav/appinfo/v2/publicremote.php
index 91d5a0448eb..bbffd280115 100644
--- a/apps/dav/appinfo/v2/publicremote.php
+++ b/apps/dav/appinfo/v2/publicremote.php
@@ -77,7 +77,7 @@ $filesDropPlugin = new FilesDropPlugin();
// Define root url with /public.php/dav/files/TOKEN
/** @var string $baseuri defined in public.php */
-preg_match('/(^files\/\w+)/i', substr($requestUri, strlen($baseuri)), $match);
+preg_match('/(^files\/[a-z0-9-]+)/i', substr($requestUri, strlen($baseuri)), $match);
$baseuri = $baseuri . $match[0];
$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function (\Sabre\DAV\Server $server) use ($authBackend, $linkCheckPlugin, $filesDropPlugin) {