MantisBT: master-2.26 032000c6

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2023-11-13 11:15 master-2.26 f9d386be
Affected Issues  0033173: No endpoints working on Windows server with PHP 8.1+
Changeset

Fix REST API endpoints failing on Windows

When running on PHP >= 8.1, REST API calls throw errors on Windows, due
to deprecated_errors_handler() function incorrectly expecting Unix-style
path on offending file name.

Converting \ to / in $p_file variable before processing fixes the
problem.

Fixes 0033173

mod - api/rest/index.php Diff File