Problem/Motivation

When using PHP 8.2, the following warning is displayed repeatedly:

Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /var/www/html/docroot/modules/contrib/media_link_enhancements/src/MediaLinkEnhancementsAlterLinks.php on line 98

Steps to reproduce

Install version 1.0.4 on a Drupal site with PHP 8.2 and go to any page.

Proposed resolution

Switch from using mb_convert_encoding to use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead.

Remaining tasks

Make PR with fix.

User interface changes

None.

API changes

None.

Data model changes

None.

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

SamLerner created an issue. See original summary.

samlerner’s picture

Issue summary: View changes
samlerner’s picture

Issue summary: View changes

keshavv’s picture

Status: Active » Needs review

LGTM

cameron prince’s picture

Status: Needs review » Fixed

This has been merged and 1.0.5 cut. Thanks!

Status: Fixed » Closed (fixed)

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