mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
203d54be11
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 |
||
---|---|---|
.. | ||
Handlers | ||
AbuseFilterAlterVariablesHook.php | ||
AbuseFilterBuilderHook.php | ||
AbuseFilterComputeVariableHook.php | ||
AbuseFilterContentToStringHook.php | ||
AbuseFilterCustomActionsHook.php | ||
AbuseFilterDeprecatedVariablesHook.php | ||
AbuseFilterFilterActionHook.php | ||
AbuseFilterGenerateGenericVarsHook.php | ||
AbuseFilterGenerateTitleVarsHook.php | ||
AbuseFilterGenerateUserVarsHook.php | ||
AbuseFilterGenerateVarsForRecentChangeHook.php | ||
AbuseFilterGetDangerousActionsHook.php | ||
AbuseFilterHookRunner.php | ||
AbuseFilterInterceptVariableHook.php | ||
AbuseFilterShouldFilterActionHook.php |