Merge pull request #2472 from pi-hole/fix-webpwexpansion

Prevent BASH from expanding Web Password
This commit is contained in:
Mark Drobnak
2018-10-22 22:18:32 -04:00
committed by GitHub

View File

@ -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"