]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7943 @0:20
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Jan 2026 10:37:04 +0000 (11:37 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 15 Jan 2026 10:37:04 +0000 (11:37 +0100)
app/Models/ToolWebflow.php

index 69441d89d4d6a69ddfec89fb5987ddc7059bd35f..cb46e76e3bcb0efc522e3da1e63a1f86c7201331 100644 (file)
@@ -165,7 +165,7 @@ class ToolWebflow extends ToolboxTranslatableModel
         if (is_string($this->api)) {
             $api = json_decode($this->api, true);
         }
-        if(!isset($api) || null===$api){
+        if (!isset($api) || null === $api) {
             return false;
         }
         $seo = $this->getTranslations('seo');
@@ -353,7 +353,8 @@ class ToolWebflow extends ToolboxTranslatableModel
         stop_measure("Webflow refresh data from api");
     }
 
-    public function initWebflowApiClient(){
+    public function initWebflowApiClient()
+    {
         Webflow::setToken($this->webflow_api_token);
         Webflow::setClientId(env('WEBFLOW_' . $this->webflow_account . '_CLIENT_ID'), env('WEBFLOW_' . $this->webflow_account . '_CLIENT_SECRET'));
     }
@@ -583,6 +584,7 @@ class ToolWebflow extends ToolboxTranslatableModel
 
 
         $html = preg_replace('/\s+lang="[a-zA-Z\-_]{2,6}"/', ' lang="' . $locale . '"', $html);
+        $html = preg_replace('/integrity=".*"/U', '', $html);
 
 
         // Texts