From 2910eb2a03462113eafaffa163d15ec953b06034 Mon Sep 17 00:00:00 2001 From: datorik Date: Mon, 18 May 2026 20:16:56 +0300 Subject: [PATCH] Code. Add get params to bot detector wrapper --- lib/CleantalkAntispam.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CleantalkAntispam.php b/lib/CleantalkAntispam.php index f9568e8..e9c21d5 100644 --- a/lib/CleantalkAntispam.php +++ b/lib/CleantalkAntispam.php @@ -134,8 +134,9 @@ private function setEmailAutomatically() public static function getFrontendHTMLCode($warn_if_js_disabled = false) { $warn = $warn_if_js_disabled ? '' : ''; + $url = static::BOT_DETECTOR_LIBRARY_URL . '?ver=' . gmdate('Ymd'); $html = '%s'; - return sprintf($html, static::BOT_DETECTOR_LIBRARY_URL, $warn); + return sprintf($html, $url, $warn); } /**