Merge pull request #1331 from pi-hole/RemovePasswordFromDebugLogBecauseSomePeopleFeelItUnderminesSecurity-TheyProbablyHaveAPoint

add check on file_parse to not include WEBPASSWORD= in the debug log
pull/1349/head
Dan Schaper 7 years ago committed by GitHub
commit 073c7e54df

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

Loading…
Cancel
Save