aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/DnsPinMiddleware.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-07-12 15:06:30 +0200
committerGitHub <noreply@github.com>2021-07-12 15:06:30 +0200
commit84d9b17dc7105d32b84e717966730fc00c4ed5be (patch)
tree255adc14d689f18f9c149c50e47ab4db563ed0f0 /lib/private/Http/Client/DnsPinMiddleware.php
parentb0cef8827daf5e21e8c02ec871b34ad73459db01 (diff)
downloadnextcloud-server-84d9b17dc7105d32b84e717966730fc00c4ed5be.tar.gz
nextcloud-server-84d9b17dc7105d32b84e717966730fc00c4ed5be.zip
Check for !== false instead
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Http/Client/DnsPinMiddleware.php')
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php
index 6b5437fa66a..ee0ea053dcf 100644
--- a/lib/private/Http/Client/DnsPinMiddleware.php
+++ b/lib/private/Http/Client/DnsPinMiddleware.php
@@ -82,7 +82,7 @@ class DnsPinMiddleware {
$dnsResponses = dns_get_record($target, $dnsType);
$canHaveCnameRecord = true;
- if ($dnsResponses && count($dnsResponses) > 0) {
+ if ($dnsResponses !== false && count($dnsResponses) > 0) {
foreach ($dnsResponses as $dnsResponse) {
if (isset($dnsResponse['ip'])) {
$targetIps[] = $dnsResponse['ip'];