Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

#8640 closed defect (bug) (fixed)

PHP Notice in BP_Activity_oEmbed_Extension::validate_url_to_item_id() on invalid requests

Reported by: dd32's profile dd32 Owned by: imath's profile imath
Milestone: 10.1.0 Priority: normal
Severity: normal Version:
Component: Core Keywords: needs-patch
Cc:

Description

Similar to #8601

E_WARNING: strpos() expects parameter 1 to be string, array given in wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-oembed-extension.php:94

Example:
GET https://example.org/wp-json/oembed/1.0/embed?format=xml&url[]=https://example.org/

Change History (3)

#1 @imath
3 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 10.1.0

Got it thanks for your report. We’ll fix it in 10.1.0 asap.

#2 @imath
3 years ago

In 13241:

Avoid a TypeError when validating the activity URL to embed

Props dd32

See #8640 (trunk)

#3 @imath
3 years ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13242:

Avoid a TypeError when validating the activity URL to embed

Props dd32

Fixes #8640 (branch 10.0)

Note: See TracTickets for help on using tickets.