mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 15:07:19 +02:00
Duh, no 'next' in PHP.
Use === instead of == for extra paranoia.
This commit is contained in:
parent
b1867dc8d1
commit
3516b58be6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user