Quote BookStack values
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Some strings contain spaces or special characters and should be quoted.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-04-30 18:20:54 +02:00
parent 600a73a984
commit 938be46faf
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -27,7 +27,7 @@ bookstack_permissions:
{%- if mypillar[option] is string and mypillar[option].startswith('$') or mypillar[option] is number %} {%- if mypillar[option] is string and mypillar[option].startswith('$') or mypillar[option] is number %}
{%- set value = mypillar[option] %} {%- set value = mypillar[option] %}
{%- else %} {%- else %}
{%- set value = mypillar[option] | quote %} {%- set value = "'" ~ mypillar[option] ~ "'" | quote %}
{%- endif %} {%- endif %}
{{ option | upper }}: {{ value }} {{ option | upper }}: {{ value }}
{%- endif -%} {%- endif -%}