Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 05:55:08 PM (13 months ago)
Author:
espellcaste
Message:

Use wp_parse_url instead of parse_url to parse URLs.

Props imath
Closes https://github.com/buddypress/buddypress/pull/307
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-media-extractor.php

    r13897 r13898  
    631631            }
    632632
    633             $path = untrailingslashit( parse_url( $audio['attributes'][ $src_param ], PHP_URL_PATH ) );
     633            $path = untrailingslashit( wp_parse_url( $audio['attributes'][ $src_param ], PHP_URL_PATH ) );
    634634
    635635            foreach ( $audio_types as $extension ) {
     
    728728            }
    729729
    730             $path = untrailingslashit( parse_url( $video['attributes'][ $src_param ], PHP_URL_PATH ) );
     730            $path = untrailingslashit( wp_parse_url( $video['attributes'][ $src_param ], PHP_URL_PATH ) );
    731731
    732732            foreach ( $video_types as $extension ) {
Note: See TracChangeset for help on using the changeset viewer.