mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Make escape relevant
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user