diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-12-08 08:50:00 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-12-08 08:50:00 +0100 |
commit | 8289943a0f474d0bca6504b5e7a09491c3f22987 (patch) | |
tree | 821cc0151535191b1250d8c028f8018cdca3ce3e /lib/private/security | |
parent | 451ba4ddaa31b90f0743641e748782655cfc83f7 (diff) | |
download | nextcloud-server-8289943a0f474d0bca6504b5e7a09491c3f22987.tar.gz nextcloud-server-8289943a0f474d0bca6504b5e7a09491c3f22987.zip |
Do not trust casting
Diffstat (limited to 'lib/private/security')
-rw-r--r-- | lib/private/security/trusteddomainhelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/security/trusteddomainhelper.php b/lib/private/security/trusteddomainhelper.php index 7d7cd5196b1..c1a397dd52d 100644 --- a/lib/private/security/trusteddomainhelper.php +++ b/lib/private/security/trusteddomainhelper.php @@ -78,7 +78,7 @@ class TrustedDomainHelper { if (preg_match(Request::REGEX_LOCALHOST, $domain) === 1) { return true; } - return in_array($domain, $trustedList); + return in_array($domain, $trustedList, true); } } |