10up / brightcove-video-connect

A plugin to integrate your Brightcove video library or libraries with WordPress
https://www.brightcove.com/
GNU General Public License v2.0
22 stars 34 forks source link

Fix: Add support for special characters #373

Closed burhandodhy closed 9 months ago

burhandodhy commented 9 months ago

Description of the Change

This PR fixes an issue where the special characters get encoded due to the utf8_uri_encode function in sanitize_payload_item and sanitize_payload_args_recursive functions.

Closes #348

How to test the Change

  1. Upload or edit a Brightcove video
  2. Use a special character in the Name field such as ’, —, or é.
  3. Reload the page and confirm the field doesn't have encoded characters anymore

Changelog Entry

Fixed - Add support for special characters

Credits

Props @burhandodhy @cr0ybot

Checklist: