Duh, no 'next' in PHP.

Use === instead of == for extra paranoia.
This commit is contained in:
Johannes Ernst 2016-07-06 04:51:49 +00:00
parent b1867dc8d1
commit 3516b58be6

View File

@ -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) {