From f97a7a93d49f5e05a9542dffa32cf3f9225375e2 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Thu, 9 May 2019 15:27:43 +0100 Subject: [PATCH] htmlform: Use `::isValidRange()` instead of deprecated `::isValidBlock()` Only 1 usage of this call in everywhere, see usage below. Once this is merged, the method can be hard deprecated and later killed. Usage ===== https://codesearch.wmflabs.org/search/?q=%5CbisValidBlock%5Cb&i=nope&files=&repos= Change-Id: Ic00f760a0a214faba7a71dd088da1dc25ecb796c --- includes/htmlform/fields/HTMLUserTextField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/htmlform/fields/HTMLUserTextField.php b/includes/htmlform/fields/HTMLUserTextField.php index d6723144f5..5b3bc25ef8 100644 --- a/includes/htmlform/fields/HTMLUserTextField.php +++ b/includes/htmlform/fields/HTMLUserTextField.php @@ -65,7 +65,7 @@ class HTMLUserTextField extends HTMLTextField { protected function isValidIPRange( $value ) { $cidrIPRanges = $this->mParams['iprangelimits']; - if ( !IP::isValidBlock( $value ) ) { + if ( !IP::isValidRange( $value ) ) { return false; } -- 2.20.1