Skip to content

Commit

Permalink
Fix trusted proxy wildcard check
Browse files Browse the repository at this point in the history
  • Loading branch information
sajtiii committed Nov 10, 2022
1 parent 1d11ee6 commit 04c0bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/class.osticket.php
Expand Up @@ -604,7 +604,7 @@ static function is_trusted_proxy($ip, $proxies=array()) {
if (!$proxies)
return false;
// Wildcard set - trust all proxies
else if ($proxies == '*')
else if (in_array('*', $proxies))
return true;

return ($proxies && Validator::check_ip($ip, $proxies));
Expand Down

0 comments on commit 04c0bb3

Please sign in to comment.