From f3377343d1d2cf1d0ec335e831105f820a21de8d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 8 Jul 2025 10:31:22 +0200 Subject: [PATCH] Make escape relevant --- .templates/00-global_var.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 83917c055..c5053d9a7 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -44,7 +44,7 @@ for KEYS in "${arr[@]}"; do bashio::log.warning "One of your option is an array, skipping" else # Sanitize variable - if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" == *[!\*]* ]]; then + if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" =~ [^a-zA-Z0-9] ]]; then VALUE=$(sanitize_variable "$VALUE") fi # Continue for single values