Skip to content

Code. Add get params to bot detector wrapper#50

Open
alexander-b-clean wants to merge 1 commit into
devfrom
add-get-to-url.ab
Open

Code. Add get params to bot detector wrapper#50
alexander-b-clean wants to merge 1 commit into
devfrom
add-get-to-url.ab

Conversation

@alexander-b-clean
Copy link
Copy Markdown
Contributor

Comment thread lib/CleantalkAntispam.php
public static function getFrontendHTMLCode($warn_if_js_disabled = false)
{
$warn = $warn_if_js_disabled ? '<noscript><div>Please, enable JavaScript in the browser to process the form</div></noscript>' : '';
$url = static::BOT_DETECTOR_LIBRARY_URL . '?ver=' . gmdate('Ymd');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gmdate('Ymd');

This will drop the browser cache, you can use constant APBCT_VERSION instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants