Skip to:
Content

BuddyPress.org

Changeset 13157


Ignore:
Timestamp:
11/30/2021 08:23:48 PM (3 years ago)
Author:
imath
Message:

Validate an url param exists before processing an oEmbed XML request

Props dd32

See #8601 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-oembed-extension.php

    r13108 r13157  
    485485        // This is our mod to _oembed_rest_pre_serve_request().
    486486        $query_params = $request->get_query_params();
    487         if ( false === $this->validate_url_to_item_id( $query_params['url'] ) ) {
     487        if ( ! isset( $query_params['url'] ) || false === $this->validate_url_to_item_id( $query_params['url'] ) ) {
    488488            return $served;
    489489        }
Note: See TracChangeset for help on using the changeset viewer.