Cookie debug 3
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user