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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lucastockmann created an issue. See original summary.

  • lucastockmann authored 3ab000a3 on 3.x
    Issue #3316802 by lucastockmann: Error when parsing facebook embed field
    
kaszarobert’s picture

Assigned: lucastockmann » Unassigned
Status: Active » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.