mediawiki-extensions-AbuseF.../includes/Views
Daimona Eaytoy 215f16a177 Prevent uncaught warnings/exception on Special:AbuseFilter
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
2020-10-20 13:59:45 +02:00
..
AbuseFilterView.php Avoid direct coupling between SpecialAbuseFilter and AbuseFilterView 2020-10-17 00:37:11 +02:00
AbuseFilterViewDiff.php Clean up view classes 2020-10-13 10:38:43 +02:00
AbuseFilterViewEdit.php Avoid direct coupling between SpecialAbuseFilter and AbuseFilterView 2020-10-17 00:37:11 +02:00
AbuseFilterViewExamine.php Add an AbuseFilterPermissionManager service 2020-10-10 14:03:29 +02:00
AbuseFilterViewHistory.php Avoid direct coupling between SpecialAbuseFilter and AbuseFilterView 2020-10-17 00:37:11 +02:00
AbuseFilterViewImport.php Add an AbuseFilterPermissionManager service 2020-10-10 14:03:29 +02:00
AbuseFilterViewList.php Prevent uncaught warnings/exception on Special:AbuseFilter 2020-10-20 13:59:45 +02:00
AbuseFilterViewRevert.php Clean up view classes 2020-10-13 10:38:43 +02:00
AbuseFilterViewTestBatch.php Add an AbuseFilterPermissionManager service 2020-10-10 14:03:29 +02:00
AbuseFilterViewTools.php Add an AbuseFilterPermissionManager service 2020-10-10 14:03:29 +02:00