dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Bump ACW"
[lhc/web/wiklou.git]
/
includes
/
user
/
User.php
diff --git
a/includes/user/User.php
b/includes/user/User.php
index
8506846
..
0c39610
100644
(file)
--- a/
includes/user/User.php
+++ b/
includes/user/User.php
@@
-827,6
+827,16
@@
class User implements IDBAccessObject {
|| IP::isIPv6( $name );
}
+ /**
+ * Is the user an IP range?
+ *
+ * @since 1.30
+ * @return bool
+ */
+ public function isIPRange() {
+ return IP::isValidRange( $this->mName );
+ }
+
/**
* Is the input a valid username?
*