We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c4ae60 commit 55b99e1Copy full SHA for 55b99e1
web/index.php
@@ -250,12 +250,16 @@
250
return;
251
}
252
253
-# Add CSP Headers
254
-$cspNonce = bin2hex(zm_random_bytes(16));
255
if (!$view) {
256
ZM\Debug(1, "Empty view, defaulting to home view");
257
$view = getHomeView();
+ header('Location: ?view='.$view);
+ return;
258
259
+
260
+# Add CSP Headers
261
+$cspNonce = bin2hex(zm_random_bytes(16));
262
263
if ( $includeFiles = getSkinIncludes('views/'.$view.'.php', true, true) ) {
264
ob_start();
265
CSPHeaders($view, $cspNonce);
0 commit comments