aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-03-26 08:14:52 +0100
committerprovokateurin <kate@provokateurin.de>2025-04-08 09:59:50 +0200
commite30bc2bd3755f0b847d50786107c84e12f40a1f7 (patch)
tree3a260590b56e5e4783b7aec1b8c689aed002256e
parentb8e87483f0ea627301b985b2f4f8e27440299a19 (diff)
downloadnextcloud-server-backport/51715/stable31.tar.gz
nextcloud-server-backport/51715/stable31.zip
fix(shares): Allow underscores on custom linksbackport/51715/stable31
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-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 bbffd280115..27b8716f6ae 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\/[a-z0-9-]+)/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) {