Subversion Repositories oidplus

Rev

Rev 849 | Rev 1036 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 849 Rev 982
Line 71... Line 71...
71
// TODO: can there race-conditions if we set csrf_token here? Or should we set it as inline-script in index.php ?
71
// TODO: can there race-conditions if we set csrf_token here? Or should we set it as inline-script in index.php ?
72
$files[] = 'var csrf_token = '.js_escape(isset($_COOKIE['csrf_token']) ? $_COOKIE['csrf_token'] : '').';';
72
$files[] = 'var csrf_token = '.js_escape(isset($_COOKIE['csrf_token']) ? $_COOKIE['csrf_token'] : '').';';
73
 
73
 
74
$files[] = 'var samesite_policy = '.js_escape(OIDplus::baseConfig()->getValue('COOKIE_SAMESITE_POLICY','Strict')).';';
74
$files[] = 'var samesite_policy = '.js_escape(OIDplus::baseConfig()->getValue('COOKIE_SAMESITE_POLICY','Strict')).';';
75
 
75
 
-
 
76
$files[] = process_file(__DIR__ . '/includes/oidplus_functions.js');
-
 
77
$files[] = process_file(__DIR__ . '/includes/oidplus_language.js');
76
$files[] = process_file(__DIR__ . '/includes/oidplus_base.js');
78
$files[] = process_file(__DIR__ . '/includes/oidplus_base.js');
77
 
79
 
78
# ---
80
# ---
79
 
81
 
80
function process_file($filename) {
82
function process_file($filename) {