From: Derick Alangi Date: Thu, 9 May 2019 14:27:43 +0000 (+0100) Subject: htmlform: Use `::isValidRange()` instead of deprecated `::isValidBlock()` X-Git-Tag: 1.34.0-rc.0~1738^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f97a7a93d49f5e05a9542dffa32cf3f9225375e2;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }