Use a redirect on homeview to fix having query params added on

pull/4198/head
Isaac Connor 2024-12-13 12:19:30 -05:00
parent 4c4ae608e0
commit 55b99e19ab
1 changed files with 6 additions and 2 deletions

View File

@ -250,12 +250,16 @@ if ( $request ) {
return;
}
# Add CSP Headers
$cspNonce = bin2hex(zm_random_bytes(16));
if (!$view) {
ZM\Debug(1, "Empty view, defaulting to home view");
$view = getHomeView();
header('Location: ?view='.$view);
return;
}
# Add CSP Headers
$cspNonce = bin2hex(zm_random_bytes(16));
if ( $includeFiles = getSkinIncludes('views/'.$view.'.php', true, true) ) {
ob_start();
CSPHeaders($view, $cspNonce);