From ba5d02c3a795dce54b3204ed843f84f2fcfbf979 Mon Sep 17 00:00:00 2001 From: swagnerfaw <109229217+swagnerfaw@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:55:48 +0200 Subject: [PATCH] Fix csrf.origin url join for share-config (#365) Co-authored-by: Giovanni Toraldo --- charts/alfresco-common/Chart.yaml | 2 +- charts/alfresco-common/README.md | 2 +- charts/alfresco-common/templates/_helpers-url.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/alfresco-common/Chart.yaml b/charts/alfresco-common/Chart.yaml index 2b262133..47b6b506 100644 --- a/charts/alfresco-common/Chart.yaml +++ b/charts/alfresco-common/Chart.yaml @@ -5,7 +5,7 @@ description: | A helper subchart to avoid duplication in alfresco charts and set common external dependencies type: library -version: 3.1.3 +version: 3.1.4 dependencies: - name: common repository: oci://registry-1.docker.io/bitnamicharts diff --git a/charts/alfresco-common/README.md b/charts/alfresco-common/README.md index cdbc4e09..b4119422 100644 --- a/charts/alfresco-common/README.md +++ b/charts/alfresco-common/README.md @@ -5,7 +5,7 @@ parent: Charts Reference # alfresco-common -![Version: 3.1.3](https://img.shields.io/badge/Version-3.1.3-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) +![Version: 3.1.4](https://img.shields.io/badge/Version-3.1.4-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square) A helper subchart to avoid duplication in alfresco charts and set common external dependencies diff --git a/charts/alfresco-common/templates/_helpers-url.tpl b/charts/alfresco-common/templates/_helpers-url.tpl index 5260bad5..3868c1f1 100644 --- a/charts/alfresco-common/templates/_helpers-url.tpl +++ b/charts/alfresco-common/templates/_helpers-url.tpl @@ -46,7 +46,7 @@ Usage: include "alfresco-common.csrf.origin" $ {{- $known_url := urlJoin (dict "host" $parsed_url.host "scheme" $parsed_url.scheme) }} {{- $csrf_origins = append $csrf_origins $known_url }} {{- end }} -{{- $csrf_origins | join "," }} +{{- $csrf_origins | join "\\|" }} {{- end -}} {{/*