Error when parsing facebook embed field

Created on 21 October 2022, about 2 years ago
Updated 5 September 2023, over 1 year ago

Problem/Motivation

DOMDocument->loadHTML() always requires a source that is not empty. But we never actually check if $data passed to that given method is not empty. This can result in a

Message	ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in DOMDocument->loadHTML()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany lucastockmann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024