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

Do not use libxml_disable_entity_loader on PHP 8 or later #289

Merged
merged 2 commits into from
Apr 21, 2022

Conversation

juliusknorr
Copy link
Member

Avoid deprecation logs on PHP 8

https://php.watch/versions/8.0/libxml_disable_entity_loader-deprecation

In PHP 8.0 and later, PHP uses libxml versions from 2.9.0, which disabled XXE by default. libxml_disable_entity_loader() is now deprecated.

Cherry-pick of nextcloud/richdocuments#1502 for the office online integration

@juliusknorr
Copy link
Member Author

/rebase

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the techdebt/libxml_disable_entity_loader branch from df9f0fb to 41badce Compare April 11, 2022 20:42
Co-authored-by: Vinicius Reis <luiz.vinicius73@gmail.com>
@juliusknorr juliusknorr merged commit 0e15677 into master Apr 21, 2022
@delete-merged-branch delete-merged-branch bot deleted the techdebt/libxml_disable_entity_loader branch April 21, 2022 16:28
@koelle25
Copy link

Hi there!
Could you please create a release including this fix? Our Nextcloud log gets spammed by

Error: Function libxml_disable_entity_loader() is deprecated at /var/www/html/custom_apps/officeonline/lib/WOPI/Parser.php#181

errors ever since upgrading to NC22 and PHP 8.0 (currently on NC23 with OfficeOnline app v1.1.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants