From d11d735a66da73455239c70ccddece5e52bb9d7b Mon Sep 17 00:00:00 2001 From: Brooke Bryan Date: Thu, 21 Mar 2024 13:39:48 +0000 Subject: [PATCH] Safety check on strpos --- src/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.php b/src/System.php index 9adb681..2f766a4 100644 --- a/src/System.php +++ b/src/System.php @@ -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; } /**