Browse Source

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>
pull/38261/head
Faraz Samapoor 2 years ago
committed by GitHub
parent
commit
9f6f4b105f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/private/Files/Type/Detection.php

2
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';
}

Loading…
Cancel
Save