Environment
- VEditor: 1.1.2
- MantisBT: 2.28.3 (also reproduced on 2.28.0; present throughout 2.28.x)
- PHP: 8.3.31 (mod_php / Apache)
Summary
With VEditor enabled, submitting a bugnote (or any text VEditor processes)
through MantisBT's REST API fails with HTTP 500 on PHP 8.2+.
Root cause
src/Html2Text.php:54:
$html = mb_convert_encoding($html, "HTML-ENTITIES", "UTF-8");
It will only crash on REST api because api/rest/index.php:
set_error_handler( 'deprecated_errors_handler', E_DEPRECATED );
Environment
Summary
With VEditor enabled, submitting a bugnote (or any text VEditor processes)
through MantisBT's REST API fails with HTTP 500 on PHP 8.2+.
Root cause
src/Html2Text.php:54:It will only crash on REST api because
api/rest/index.php: