From bf785457526078a44c89ef68c24a04152ce37791 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 19 Jun 2022 14:49:18 +0100 Subject: [PATCH] Apply rate-limiting only to HTTP requests --- application/helpers/rate_limit_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/rate_limit_helper.php b/application/helpers/rate_limit_helper.php index 0820a4ec..3d932aab 100644 --- a/application/helpers/rate_limit_helper.php +++ b/application/helpers/rate_limit_helper.php @@ -32,7 +32,7 @@ if ( ! function_exists('rate_limit')) $rate_limiting = $CI->config->item('rate_limiting'); - if ( ! $rate_limiting) + if ( ! $rate_limiting || is_cli()) { return; }