MantisBT: master-2.27 71f285fc

Author Committer Branch Timestamp Parent
dregad dregad master-2.27 2025-04-19 09:45 release-2.27.1 15dc24c4
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/filter_api.php line 417:
'urlencode(): Passing null to parameter 0000001 ($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

Backported from 798ccf1d007a9d1712940c60a7dac01c049d38a6.

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