diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2018-09-13 00:44:54 -0400 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2018-09-20 17:10:04 -0400 |
| commit | 54cfc5a8423cce81b8d5b9e01f82b078bf43ae5d (patch) | |
| tree | 0cc13074488a2a631ae8d16379236c77c570d12e /httemplate/misc/edge_browser_check-iframe.html | |
| parent | 8a8e73270785100f2abc1242148a935d09f976ea (diff) | |
RT# 80624 Browser check repeats if session changes
Diffstat (limited to 'httemplate/misc/edge_browser_check-iframe.html')
| -rw-r--r-- | httemplate/misc/edge_browser_check-iframe.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/httemplate/misc/edge_browser_check-iframe.html b/httemplate/misc/edge_browser_check-iframe.html index e804fc676..61ae9a0bd 100644 --- a/httemplate/misc/edge_browser_check-iframe.html +++ b/httemplate/misc/edge_browser_check-iframe.html @@ -19,16 +19,15 @@ <%init> my $cgi = FS::UID::cgi(); my $curuser = $FS::CurrentUser::CurrentUser; +my $session = $FS::CurrentUser::CurrentSession; +my $sessionkey = $session->sessionkey if $session; if ( $curuser ) { my $canary = $cgi->param('edge_browser_canary'); $curuser->set_pref( 'edge_bug_vulnerable', - $canary eq 'test' ? 'Y' : 'Y', - - # Don't test this user's session for the next 10m - time() + 600, + $canary eq 'test' ? $sessionkey : 'Y', ); } |
