Repository navigation
XMF 1.2.33 is a security update for the PHP 7.4 line (XOOPS 2.5.x). It backports the fixes released in XMF 1.3.3 (#197) via #198.
Security
ProxyCheck/IPAddress::fromRequest(): theproxy_envheader is only used whenREMOTE_ADDRis listed in the new$xoopsConfig['proxy_trusted'](addresses or CIDR ranges, array or comma separated; IPv4-mapped IPv6 peers match IPv4 entries). Entries are read from right to left, skipping trusted proxies, and any entry that is not an IP address stops the search. Sites that setproxy_envmust addproxy_trusted; until then the peer address is used.ProxyCheck: RFC 7239Forwardedvalues are parsed case-insensitively, with quoted delimiters respected, node ports stripped, and elements with zero or severalforparameters rejected.
Bug fixes
Database\Tables:CURRENT_TIMESTAMPdefaults reported ascurrent_timestamp()or with a precision are no longer quoted and render in the canonical form; the same text in a string column stays a quoted literal. Tables with functional index key parts are refused with an error instead of loading a wrong index definition.Database\Migrate:getCurrentSchema()leaves out missing tables;getCurrentSchema(),saveCurrentSchema(),getSynchronizeDDL()andsynchronizeSchema()throwRuntimeExceptionwhen a table cannot be read.FilterInput::cleanVar()accepts anulltype without a PHP 8.1+ deprecation.
Development
- PHPUnit 9 fixture signatures;
roave/security-advisoriesdropped fromrequire-devand the low-severity php-jwt 6.x advisory (PKSA-y2cr-5h3j-g3ys, fixed only in php-jwt 7, which needs PHP 8) ignored so the dev install resolves on PHP 7.4.
PHP 7.4 or later.