From e6546080a0edba946987e202353d0c1a2fd7ccee Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Apr 2020 19:58:07 +0200 Subject: [PATCH] query videoconference room, if VC is configured --- api/tests/Vfs/SharingBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tests/Vfs/SharingBase.php b/api/tests/Vfs/SharingBase.php index be5d6ca5a0..5d5e40a5db 100644 --- a/api/tests/Vfs/SharingBase.php +++ b/api/tests/Vfs/SharingBase.php @@ -478,6 +478,7 @@ class SharingBase extends LoggedInTest preg_match('|^https?://[^/]+(/.*)share.php/'.$share['share_token'].'$|', $path_info=$_SERVER['REQUEST_URI'], $matches); $_SERVER['SCRIPT_NAME'] = $matches[1]; $is_dir = Vfs::is_dir($path); + $mimetype = Vfs::mime_content_type($path); // Re-init, since they look at user, fstab, etc. @@ -497,7 +498,7 @@ class SharingBase extends LoggedInTest else { // If it's a file, check to make sure we get the file - $this->checkSharedFile($link, $path); + $this->checkSharedFile($link, $mimetype); } // Load share