mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Use a redirect on homeview to fix having query params added on
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user