From c20ed3aea7274fad5861f0a64e9543c753846e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Jir=C3=A1sek?= Date: Wed, 10 Oct 2018 18:49:06 +0200 Subject: [PATCH] A non-numeric value encountered while isInSafeMode check --- src/Kdyby/Curl/CurlSender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kdyby/Curl/CurlSender.php b/src/Kdyby/Curl/CurlSender.php index 0533b80..438f29b 100644 --- a/src/Kdyby/Curl/CurlSender.php +++ b/src/Kdyby/Curl/CurlSender.php @@ -465,7 +465,7 @@ public function canFollowRedirect() public static function isInSafeMode() { $status = strtolower(ini_get('safe_mode')); - return $status === 'on' || $status === 'true' || $status === 'yes' || $status % 256; + return $status === 'on' || $status === 'true' || $status === 'yes' || (is_numeric($status) ? $status % 256 : false); } }