Skip to content

Commit 80d3216

Browse files
committed
strict comparison is preferred
1 parent 2c6d239 commit 80d3216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/AppFramework/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ protected function matchesTrustedProxy($trustedProxy, $remoteAddress) {
611611
$netnum = ip2long($net) >> $shiftbits;
612612
$ipnum = ip2long($remoteAddress) >> $shiftbits;
613613

614-
return $ipnum == $netnum;
614+
return $ipnum === $netnum;
615615
}
616616

617617
return $trustedProxy === $remoteAddress;

0 commit comments

Comments
 (0)