We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afaeffd commit 8a05f42Copy full SHA for 8a05f42
1 file changed
com_connect.php
@@ -1641,7 +1641,10 @@ function com_connect_file($atts)
1641
if (class_exists('finfo') && !empty($fileInfo['tmp_name']) && $acceptableMime) {
1642
$finfo = finfo_open(FILEINFO_MIME_TYPE);
1643
$mtype = finfo_file($finfo, $fileInfo['tmp_name']);
1644
- finfo_close($finfo);
+
1645
+ if (version_compare(PHP_VERSION, '8.5.0') < 0) {
1646
+ finfo_close($finfo);
1647
+ }
1648
1649
$mimeOK = com_connect_strposa($acceptableMime, $mtype);
1650
} else {
0 commit comments