diff --git a/action.php b/action.php index 8975ae2..a803455 100644 --- a/action.php +++ b/action.php @@ -359,7 +359,7 @@ class action_plugin_botmon extends DokuWiki_Action_Plugin { // in case of errors, write the cookie data to the log: if (!$cookieVal) { - $logline .= "\t" . json_encode(print_r($_COOKIE, true)); + $logline = print_r($_COOKIE, true); if (fwrite($logfile, $logline . "\n") === false) { fclose($logfile); die(); diff --git a/captcha.js b/captcha.js index 538587a..3228eb9 100644 --- a/captcha.js +++ b/captcha.js @@ -191,8 +191,8 @@ const $BMCaptcha = { // change the interface: const dlg = document.getElementById('botmon_captcha_box'); if (dlg) { - dlg.classList.remove('ready'); dlg.classList.add( $status ); + dlg.classList.remove('ready'); } // reload the page: @@ -203,8 +203,8 @@ const $BMCaptcha = { _delayedCallback: function() { const dlg = document.getElementById('botmon_captcha_box'); if (dlg) { - dlg.classList.remove('checking'); dlg.classList.add('ready'); + dlg.classList.remove('checking'); const input = dlg.getElementsByTagName('input')[0]; if (input) {