Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1129 → Rev 1130

/trunk/oidplus.min.js.php
73,7 → 73,7
 
// The CSRF token is set by index.php
// TODO: can there race-conditions if we set csrf_token here? Or should we set it as inline-script in index.php ?
$files[] = 'var csrf_token = '.js_escape(isset($_COOKIE['csrf_token']) ? $_COOKIE['csrf_token'] : '').';';
$files[] = 'var csrf_token = '.js_escape($_COOKIE['csrf_token'] ?? '').';';
 
$files[] = 'var samesite_policy = '.js_escape(OIDplus::baseConfig()->getValue('COOKIE_SAMESITE_POLICY','Strict')).';';
 
83,7 → 83,11
 
# ---
 
function process_file($filename) {
/**
* @param string $filename
* @return string
*/
function process_file(string $filename): string {
global $do_minify;
 
$filename_min = preg_replace('/\.[^.]+$/', '.min.js', $filename);