mediawiki-extensions-AbuseF.../includes/Hooks
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
..
Handlers BlockedExternalDomains: Optimize host extraction by using parse_url 2023-06-19 13:36:27 +00:00
AbuseFilterAlterVariablesHook.php Cleanup variables-related classes 2021-01-02 18:19:38 +01:00
AbuseFilterBuilderHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterComputeVariableHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterContentToStringHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterCustomActionsHook.php Create a dedicated namespace for all consequences-related classes 2020-12-18 19:27:33 +00:00
AbuseFilterDeprecatedVariablesHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterFilterActionHook.php Remove deprecated static methods 2022-07-27 13:01:10 +02:00
AbuseFilterGenerateGenericVarsHook.php Clean up line indent with mixed tabs and whitespaces 2022-07-31 16:34:07 +02:00
AbuseFilterGenerateTitleVarsHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterGenerateUserVarsHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterGenerateVarsForRecentChangeHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterGetDangerousActionsHook.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterHookRunner.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterInterceptVariableHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterShouldFilterActionHook.php Cleanup variables-related classes 2021-01-02 18:19:38 +01:00