mediawiki-extensions-AbuseF.../includes/Hooks/Handlers
Timo Tijhof 203d54be11 BlockedExternalDomains: Optimize host extraction by using parse_url
Unlike what the 20-year old source comments in UrlUtils.php would
have you believe, parse_url() works fine nowadays, including for
protocol-relative URLs and indeed lots of prod code uses it directly.

The class still has some convenience value for case where you need to
expand or manipulate URLs, but for the common case of extracting a part
of it, you really don't need it.

Test plan:
$ php phpunit.php ../../extensions/AbuseFilter/tests/phpunit/integration/FilteredActionsHandlerTest.php

Bug: T337431
Change-Id: I1e76d2f5aef65365743214530faba656325b965a
2023-06-19 13:36:27 +00:00
..
AutoPromoteGroupsHandler.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ChangeTagsHandler.php Move ChangeTags stuff to separate namespace 2020-11-27 15:13:34 +00:00
CheckUserHandler.php Update user type checks to handle temporary users 2023-05-25 17:26:58 -02:30
EchoHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
EditPermissionHandler.php Allow interface-admins to edit blocked domains json directly 2023-06-06 23:36:12 +02:00
FilteredActionsHandler.php BlockedExternalDomains: Optimize host extraction by using parse_url 2023-06-19 13:36:27 +00:00
PageSaveHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
RecentChangeSaveHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
RegistrationCallback.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
SchemaChangesHandler.php Replace deprecated MWException 2023-06-07 17:41:20 +02:00
TestsHandler.php Replace deprecated database object access methods 2023-03-08 16:50:56 +01:00
ToolLinksHandler.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-07-03 16:37:18 +02:00
UserMergeHandler.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
UserRenameHandler.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00