From 180d29c7b3cdbc588f614a0ade5c56aa1be96f5c Mon Sep 17 00:00:00 2001 From: WaLLy3K Date: Sun, 21 Oct 2018 11:08:22 +1100 Subject: [PATCH] Prevent BASH from expanding Web Password * Resolves issue #2471 Signed-off-by: WaLLy3K --- advanced/Scripts/webpage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 86dbeb70..4f951d90 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -124,7 +124,8 @@ SetWebPassword() { fi if [ "${PASSWORD}" == "${CONFIRM}" ] ; then - hash=$(HashPassword "${PASSWORD}") + # We do not wrap this in brackets, otherwise BASH will expand any appropriate syntax + hash=$(HashPassword "$PASSWORD") # Save hash to file change_setting "WEBPASSWORD" "${hash}" echo -e " ${TICK} New password set"