Werdna has uploaded a new change for review. https://gerrit.wikimedia.org/r/136285
Change subject: Fix ccnorm() function -- strtr fails when an empty key is provided ...................................................................... Fix ccnorm() function -- strtr fails when an empty key is provided Change-Id: I635f057dab53edcfe1736f74829b6dbe1e7739d3 --- M AbuseFilter.parser.php 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter refs/changes/85/136285/1 diff --git a/AbuseFilter.parser.php b/AbuseFilter.parser.php index d0d7302..73c9801 100644 --- a/AbuseFilter.parser.php +++ b/AbuseFilter.parser.php @@ -1942,6 +1942,12 @@ $equivset = null; // Contains a map of characters in $equivset. require "$IP/extensions/AntiSpoof/equivset.php"; + + // strtr doesn't like this + if ( isset( $equivset[''] ) ) { + unset( $equivset[''] ); + } + $replacementArray = new ReplacementArray( $equivset ); } else { // AntiSpoof isn't available, so just create a dummy -- To view, visit https://gerrit.wikimedia.org/r/136285 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I635f057dab53edcfe1736f74829b6dbe1e7739d3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/AbuseFilter Gerrit-Branch: master Gerrit-Owner: Werdna <agarr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits