"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/validators/IpValidator.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

IpValidator.php  (yii2-2.0.36):IpValidator.php  (yii2-2.0.37)
skipping to change at line 36 skipping to change at line 36
* ['ip_address', 'ip', 'ipv6' => false], // IPv4 address (IPv6 is disabled) * ['ip_address', 'ip', 'ipv6' => false], // IPv4 address (IPv6 is disabled)
* ['ip_address', 'ip', 'subnet' => true], // requires a CIDR prefix (like 10.0. 0.1/24) for the IP address * ['ip_address', 'ip', 'subnet' => true], // requires a CIDR prefix (like 10.0. 0.1/24) for the IP address
* ['ip_address', 'ip', 'subnet' => null], // CIDR prefix is optional * ['ip_address', 'ip', 'subnet' => null], // CIDR prefix is optional
* ['ip_address', 'ip', 'subnet' => null, 'normalize' => true], // CIDR prefix i s optional and will be added when missing * ['ip_address', 'ip', 'subnet' => null, 'normalize' => true], // CIDR prefix i s optional and will be added when missing
* ['ip_address', 'ip', 'ranges' => ['192.168.0.0/24']], // only IP addresses fr om the specified subnet are allowed * ['ip_address', 'ip', 'ranges' => ['192.168.0.0/24']], // only IP addresses fr om the specified subnet are allowed
* ['ip_address', 'ip', 'ranges' => ['!192.168.0.0/24', 'any']], // any IP is al lowed except IP in the specified subnet * ['ip_address', 'ip', 'ranges' => ['!192.168.0.0/24', 'any']], // any IP is al lowed except IP in the specified subnet
* ['ip_address', 'ip', 'expandIPv6' => true], // expands IPv6 address to a full notation format * ['ip_address', 'ip', 'expandIPv6' => true], // expands IPv6 address to a full notation format
* ``` * ```
* *
* @property array $ranges The IPv4 or IPv6 ranges that are allowed or forbidden . See [[setRanges()]] for * @property array $ranges The IPv4 or IPv6 ranges that are allowed or forbidden . See [[setRanges()]] for
* detailed description. * detailed description. Note that the type of this property differs in getter a
nd setter. See [[getRanges()]]
* and [[setRanges()]] for details.
* *
* @author Dmitry Naumenko <d.naumenko.a@gmail.com> * @author Dmitry Naumenko <d.naumenko.a@gmail.com>
* @since 2.0.7 * @since 2.0.7
*/ */
class IpValidator extends Validator class IpValidator extends Validator
{ {
/** /**
* Negation char. * Negation char.
* *
* Used to negate [[ranges]] or [[networks]] or to negate validating value w hen [[negation]] is set to `true`. * Used to negate [[ranges]] or [[networks]] or to negate validating value w hen [[negation]] is set to `true`.
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)