1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

add check on file_parse to not include WEBPASSWORD= in the debug log

This commit is contained in:
Adam Warner 2017-03-15 18:59:41 +00:00
parent a6caa0e680
commit cfaf1ac67c
No known key found for this signature in database
GPG Key ID: 7C062498C7FA6E49

View File

@ -84,7 +84,7 @@ header_write() {
file_parse() {
while read -r line; do
if [ ! -z "${line}" ]; then
[[ "${line}" =~ ^#.*$ || ! "${line}" ]] && continue
[[ "${line}" =~ ^#.*$ || ! "${line}" || "${line}" == "WEBPASSWORD="* ]] && continue
log_write "${line}"
fi
done < "${1}"