mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Duh, no 'next' in PHP.
Use === instead of == for extra paranoia.
This commit is contained in:
parent
b1867dc8d1
commit
3516b58be6
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue