mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 14:13:54 +00:00
942a95e80e
When importing filters, the code is using the magic value of 'new' for the af_id field, which is of type bigint, to indicate a not-yet-inserted record. In MySQL, comparing a bigint to 'new' is legal but always false, while in PostgreSQL it is illegal, and led to errors when checking if the filter is hidden. Fix this by adding special-case code to filterHidden so that it always returns false for 'new' records. In PostgreSQL this fixes the error, and in MySQL it avoids a pointless trip to the database. Should be back patched to 1.23 and 1.24 Bug: T89514 Change-Id: Ib4b5585ac9889a1760ec930c555e7809a424538e |
||
---|---|---|
api | ||
db_patches | ||
i18n | ||
maintenance | ||
modules | ||
special | ||
tests | ||
Views | ||
.gitignore | ||
.gitreview | ||
.jshintrc | ||
AbuseFilter.alias.php | ||
AbuseFilter.class.php | ||
AbuseFilter.hooks.php | ||
AbuseFilter.i18n.php | ||
AbuseFilter.parser.php | ||
AbuseFilter.php | ||
abusefilter.tables.pg.sql | ||
abusefilter.tables.sql | ||
abusefilter.tables.sqlite.sql | ||
AbuseFilterVariableHolder.php | ||
AbuseLogHitFormatter.php | ||
composer.json | ||
COPYING | ||
hooks.txt |