From 43fade7dead148699331dbc4293aeacdff2fbabe Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 5 Feb 2025 11:36:26 +0100 Subject: [PATCH] Fix WOPI action URL generation [SCI-11419] --- app/models/asset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/asset.rb b/app/models/asset.rb index 0a1e97b65..c639b41bc 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -299,7 +299,7 @@ class Asset < ApplicationRecord # Extract only the licenced user flag parameter is_licenced_user = ENV['WOPI_BUSINESS_USERS'] == 'true' && action_url.include?('IsLicensedUser=BUSINESS_USER') - action_url = action_url.split('?').first + "?IsLicencedUser=#{is_licenced_user ? 1 : 0}&" + action_url = action_url.split(/[\&\?]