]> BookStack Code Mirror - bookstack/blobdiff - app/Util/CspService.php
Fixed failing webhook test cases
[bookstack] / app / Util / CspService.php
index 2979ebc3e1b2c3a5a793d6cd06666c73361840dd..812e1a4bed1cc2a1d937028e2f614ccf89cfa5ba 100644 (file)
@@ -12,7 +12,7 @@ class CspService
 
     public function __construct(string $nonce = '')
     {
-        $this->nonce = $nonce ?: Str::random(16);
+        $this->nonce = $nonce ?: Str::random(24);
     }
 
     /**
@@ -90,7 +90,7 @@ class CspService
     protected function getAllowedIframeHosts(): array
     {
         $hosts = config('app.iframe_hosts', '');
+
         return array_filter(explode(' ', $hosts));
     }
-
-}
\ No newline at end of file
+}