updated plugin ActivityPub version 9.1.0

This commit is contained in:
2026-07-28 15:03:10 +00:00
committed by Gitium
parent bf428f0e45
commit ff806e1811
217 changed files with 6098 additions and 3025 deletions

View File

@ -568,7 +568,7 @@ abstract class File {
// Method 4: Ensure file extension matches MIME type.
$ext = \pathinfo( $file_path, PATHINFO_EXTENSION );
if ( strtolower( $ext ) !== $expected_ext ) {
if ( \strtolower( $ext ) !== $expected_ext ) {
$new_path = \preg_replace( '/\.[^.]+$/', '.' . $expected_ext, $file_path );
if ( empty( $new_path ) || $new_path === $file_path ) {
$new_path = $file_path . '.' . $expected_ext;