diff options
author | Johannes Ernst <jernst@indiecomputing.com> | 2016-07-06 04:51:49 +0000 |
---|---|---|
committer | Johannes Ernst <jernst@indiecomputing.com> | 2016-07-06 04:51:49 +0000 |
commit | 3516b58be656f9f8a131ce68c5c1d0dd806f679c (patch) | |
tree | 1609f6abf9bd971372b7224cae3689a3fe0ea338 /lib | |
parent | b1867dc8d1dc0a299c4156e813c9658ff29b2303 (diff) | |
download | nextcloud-server-3516b58be656f9f8a131ce68c5c1d0dd806f679c.tar.gz nextcloud-server-3516b58be656f9f8a131ce68c5c1d0dd806f679c.zip |
Duh, no 'next' in PHP.
Use === instead of == for extra paranoia.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Security/TrustedDomainHelper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php index 6afefcbbe69..be4014327b3 100644 --- a/lib/private/Security/TrustedDomainHelper.php +++ b/lib/private/Security/TrustedDomainHelper.php @@ -90,12 +90,12 @@ class TrustedDomainHelper { // If a value contains a *, apply glob-style matching. Any second * is ignored. foreach ($trustedList as $trusted) { - if($trusted == '*') { + if($trusted === '*') { return true; } $star = strpos($trusted, '*'); if($star === false) { - next; + break; } if($star === 0) { if(strrpos($domain, substr($trusted, 1)) !== false) { |