mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 18:19:38 +00:00
215f16a177
This patch addresses two issues observed in WMF production: - Specifying a search mode without a search pattern would result in a call to mb_stripos (in AbuseFilterPager) with an empty delimiter, which triggers a PHP warning. Avoid this by checking that the search pattern is not the empty string, and unset the search mode if that's the case. - Trying to use an invalid search mode would result in an unhandled LogicException. We have some code in place to check the validity of the URL parameter, but the relevant code didn't reset the search mode to null, hence AbuseFilterPager would throw before we can show a pretty error to the user. Bug: T265994 Change-Id: Ib19d36d6265981097bbb551783fdac8bdaa98854 |
||
---|---|---|
.. | ||
AbuseFilterView.php | ||
AbuseFilterViewDiff.php | ||
AbuseFilterViewEdit.php | ||
AbuseFilterViewExamine.php | ||
AbuseFilterViewHistory.php | ||
AbuseFilterViewImport.php | ||
AbuseFilterViewList.php | ||
AbuseFilterViewRevert.php | ||
AbuseFilterViewTestBatch.php | ||
AbuseFilterViewTools.php |