Cookie debug 3

This commit is contained in:
Sascha Leib
2025-11-05 18:43:33 +01:00
parent 815e0e16ba
commit 0cfc0c5d33
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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) {