summaryrefslogtreecommitdiffstats
path: root/tests/lib/Security
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-06 10:34:02 +0100
committerGitHub <noreply@github.com>2019-03-06 10:34:02 +0100
commitd004164fcc4dc887cae388e68f8ded3b4ea166ad (patch)
treeeb1187ef647dc25f4908b6dfa77268e174813636 /tests/lib/Security
parent58f6a777b1cad989cca01bda029d0a71e3c7d16c (diff)
parentc9b588774bf57b0d0f9742b2ca32f2185c4317f1 (diff)
downloadnextcloud-server-d004164fcc4dc887cae388e68f8ded3b4ea166ad.tar.gz
nextcloud-server-d004164fcc4dc887cae388e68f8ded3b4ea166ad.zip
Merge pull request #13327 from nextcloud/allow-bracket-notation-for-remove-ipv6-address
Allow bracket IPv6 address format inside IPAdress Normalizer
Diffstat (limited to 'tests/lib/Security')
-rw-r--r--tests/lib/Security/Normalizer/IpAddressTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Security/Normalizer/IpAddressTest.php b/tests/lib/Security/Normalizer/IpAddressTest.php
index 36a48f601d3..97a8737ea9e 100644
--- a/tests/lib/Security/Normalizer/IpAddressTest.php
+++ b/tests/lib/Security/Normalizer/IpAddressTest.php
@@ -40,6 +40,10 @@ class IpAddressTest extends TestCase {
'2001:0db8:85a3:0000:0000:8a2e:0370:7334',
'2001:db8:85a3::8a2e:370:7334/128',
],
+ [
+ '[::1]',
+ '::1/128',
+ ],
];
}