Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle empty content before domdocument creation #15364

Merged

Conversation

cconard96
Copy link
Contributor

@cconard96 cconard96 commented Aug 4, 2023

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -

In PHP 7.4 at least it seems like DOMDocument does not handle empty HTML content well.
From CLI:
Uncaught ValueError: DOMDocument::loadHTML(): Argument 1 ($source) must not be empty in php shell code:1

See https://github.com/glpi-project/glpi/actions/runs/5761634677/job/15619847811

@cedric-anne cedric-anne merged commit 1b36e08 into glpi-project:10.0/bugfixes Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants