Details
-
Task
-
Resolution: Done
-
Major
-
None
Description
Ensure that in-browser messages (error, information, warning) notifications are working and documented. This functionality was previously supported by Noty.js.
The Noty.js repository reads: "This repository is no longer supported, please consider using alternatives." The latest Noty.js release is from Dec 20, 2017
A possible alternative (among many) is awesome-notifications (MIT license). As of January 2022 the project is about four years old, has recent updates, and seems to be popular. https://www.npmjs.com/package/awesome-notifications
Support for Noty.js previously used FILTER_SANITIZE_MAGIC_QUOTES when preparing output for the javascript popup. This filter was deprecated in PHP 7.3 and replaced in PHP 8.0 with FILTER_SANITIZE_ADD_SLASHES. We should review the output filtering in this context, and see if we should continue to use it or replace it with some other type of cleansing.