From 9f6f4b105f04fc2684766e32ee8efc78c2f621f6 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Wed, 17 May 2023 20:37:35 +0330 Subject: [PATCH] Update Detection.php The latter implies the former. https://github.com/nextcloud/server/pull/38261#discussion_r1196708412 Signed-off-by: Faraz Samapoor --- lib/private/Files/Type/Detection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Type/Detection.php b/lib/private/Files/Type/Detection.php index d3f548d6615..9a61aa93b95 100644 --- a/lib/private/Files/Type/Detection.php +++ b/lib/private/Files/Type/Detection.php @@ -246,7 +246,7 @@ class Detection implements IMimeTypeDetector { } } - if (str_contains($path, '://') && str_starts_with($path, 'file://')) { + if (str_starts_with($path, 'file://')) { // Is the file wrapped in a stream? return 'application/octet-stream'; }