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

add check on file_parse to not include WEBPASSWORD= in the debug log
This commit is contained in:
Dan Schaper 2017-03-15 22:08:48 -07:00 committed by GitHub
commit 073c7e54df

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