mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #51715 from nextcloud/allowUnderCustLink
fix(dav): Allow underscores on custom links
This commit is contained in:
commit
a42563f9ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue