mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Prevent BASH from expanding Web Password
* Resolves issue #2471 Signed-off-by: WaLLy3K <wally3k@pi-hole.net>
This commit is contained in:
parent
a23ba91681
commit
180d29c7b3
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue