aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/behaviour.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2021-01-11 17:23:22 +0100
committerAndreas Gohr <andi@splitbrain.org>2021-01-11 17:23:22 +0100
commitb68a7721c62562cbcd3924f5a14b4df85b5b2305 (patch)
tree398f3f742c497a7a6f706373021c14393ee5d24f /lib/scripts/behaviour.js
parentd3f829c2e865411af7ac548cd180da21c39771f2 (diff)
downloaddokuwiki-b68a7721c62562cbcd3924f5a14b4df85b5b2305.tar.gz
dokuwiki-b68a7721c62562cbcd3924f5a14b4df85b5b2305.zip
add cache buster on security check request
When doing a normal reload on the admin page to recheck the security, the browser may not re-request the image again. This adds a timestamp to the URL to ensure the image is tested again
Diffstat (limited to 'lib/scripts/behaviour.js')
-rw-r--r--lib/scripts/behaviour.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js
index 608a29de0..41702fad7 100644
--- a/lib/scripts/behaviour.js
+++ b/lib/scripts/behaviour.js
@@ -234,7 +234,7 @@ var dw_behaviour = {
$checkDiv.html(LANG.data_insecure);
$checkDiv.addClass('error');
}
- img.src = $checkDiv.data('src');
+ img.src = $checkDiv.data('src') + '?t=' + Date.now();
}
};