diff options
-rw-r--r-- | lib/private/Files/Type/Detection.php | 2 |
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'; } |