MantisBT: master 798ccf1d

Author Committer Branch Timestamp Parent
dregad dregad master 2025-04-19 09:45 master 98e5b917
Affected Issues  0035852: REST API GET /filters throws deprecation warning on PHP 8.1
Changeset

Fix PHP warning on REST API GET /filters

Unhandled deprecation warning in .../core/string_api.php line 237:
'rawurlencode(): Passing null to parameter 1 ($string) of type string is
deprecated.

Add type cast, both in string_url() function and in offending caller
filter_encode_field_and_value(), in preparation for a future change of
parameter type to enforce string.

Fixes 0035852

mod - core/filter_api.php Diff File
mod - core/string_api.php Diff File