Changeset 13509
- Timestamp:
- 07/01/2023 11:39:15 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/11.0/src/bp-core/classes/class-bp-media-extractor.php
r12602 r13509 643 643 644 644 foreach ( $links['links'] as $link ) { 645 $path = untrailingslashit( parse_url( $link['url'], PHP_URL_PATH ));645 $path = (string) wp_parse_url( $link['url'], PHP_URL_PATH ); 646 646 647 647 // Check this URL's file extension matches that of an accepted audio format. 648 if ( ! $path || substr( $path, -4 ) !== $extension ) {648 if ( ! $path || substr( untrailingslashit( $path ), -4 ) !== $extension ) { 649 649 continue; 650 650 }
Note: See TracChangeset
for help on using the changeset viewer.