aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-05-17 20:37:35 +0330
committerGitHub <noreply@github.com>2023-05-17 20:37:35 +0330
commit9f6f4b105f04fc2684766e32ee8efc78c2f621f6 (patch)
tree259d36db70fee9d92e3b3a2aee2d5e2a9a46c4f0 /lib
parente7cc7653b885c49b1b3f0a78f91ea05a53e102d8 (diff)
downloadnextcloud-server-9f6f4b105f04fc2684766e32ee8efc78c2f621f6.tar.gz
nextcloud-server-9f6f4b105f04fc2684766e32ee8efc78c2f621f6.zip
Update Detection.php
The latter implies the former. https://github.com/nextcloud/server/pull/38261#discussion_r1196708412 Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Type/Detection.php2
1 files changed, 1 insertions, 1 deletions
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';
}