Skip to content

Commit

Permalink
Safety check on strpos
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Mar 21, 2024
1 parent 338785b commit d11d735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function isAppEngine($server = null)
$server = $_SERVER['SERVER_SOFTWARE'];
}

return strpos($server, 'Google App Engine') !== false;
return $server && strpos($server, 'Google App Engine') !== false;
}

/**
Expand Down

0 comments on commit d11d735

Please sign in to comment.