mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02: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"
|
bashio::log.warning "One of your option is an array, skipping"
|
||||||
else
|
else
|
||||||
# Sanitize variable
|
# Sanitize variable
|
||||||
if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" == *[!\*]* ]]; then
|
if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" =~ [^a-zA-Z0-9] ]]; then
|
||||||
VALUE=$(sanitize_variable "$VALUE")
|
VALUE=$(sanitize_variable "$VALUE")
|
||||||
fi
|
fi
|
||||||
# Continue for single values
|
# Continue for single values
|
||||||
|
|||||||
Reference in New Issue
Block a user