Problem/Motivation

Fix bug relating to the HTMLPurifier behavior, throws a warning due to an improper config. Need to explicitly allow img.src

User warning: Required attribute 'src' in element 'img' was not allowed, which means 'img' will not be allowed either in HTMLPurifier_HTMLDefinition->setupConfigStuff() (line 347 of d11/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php).

Steps to reproduce

publish content with validation enabled

Proposed resolution

See patch, upgrade from safedelete 1.0.78 or lower to safedelete 1.0.79 or higher.

Remaining tasks

Commit solution and tag a new release.

User interface changes

No more annoying warning message.

API changes

Set configuration as expected

Data model changes

N/A

Comments

joseph.olstad created an issue. See original summary.

  • joseph.olstad committed bb5d8b6e on 1.0.x
    fix: #3568382 Required attribute 'src' in element 'img' was not allowed...
joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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