From ff797aa66817c30aa77b6cfe60f36f7b1e8810a8 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 19 Aug 2020 09:11:57 +0200 Subject: [PATCH] system: add new-password hint for Chrome on login form This may prevent Chrome from falsely caching CSRF tokens. The issue is really obscure and only happens every once in a while but test- driving this has made the situation disappear for the moment. --- src/www/csrf.inc | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/www/csrf.inc b/src/www/csrf.inc index e4c926e89..0f927e632 100644 --- a/src/www/csrf.inc +++ b/src/www/csrf.inc @@ -1,30 +1,30 @@ is_html_output) { $csrf = $this->newToken(); - $inputtag = ""; + $inputtag = ""; $buffer = preg_replace('#(]*method\s*=\s*["\']post["\'][^>]*>)#i', '$1' . $inputtag, $buffer); // csrf token for Ajax type requests $script = "