summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-12-08 08:50:00 +0100
committerLukas Reschke <lukas@owncloud.com>2015-12-08 08:50:00 +0100
commit8289943a0f474d0bca6504b5e7a09491c3f22987 (patch)
tree821cc0151535191b1250d8c028f8018cdca3ce3e /tests
parent451ba4ddaa31b90f0743641e748782655cfc83f7 (diff)
downloadnextcloud-server-8289943a0f474d0bca6504b5e7a09491c3f22987.tar.gz
nextcloud-server-8289943a0f474d0bca6504b5e7a09491c3f22987.zip
Do not trust casting
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/security/trusteddomainhelper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/security/trusteddomainhelper.php b/tests/lib/security/trusteddomainhelper.php
index c8d5ffa587b..52a8f1be630 100644
--- a/tests/lib/security/trusteddomainhelper.php
+++ b/tests/lib/security/trusteddomainhelper.php
@@ -64,6 +64,8 @@ class TrustedDomainHelperTest extends \Test\TestCase {
// do not trust invalid localhosts
[$trustedHostTestList, 'localhost:1:2', false],
[$trustedHostTestList, 'localhost: evil.host', false],
+ // do not trust casting
+ [[1], '1', false],
];
}