mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
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:
commit
073c7e54df
@ -84,7 +84,7 @@ header_write() {
|
|||||||
file_parse() {
|
file_parse() {
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
if [ ! -z "${line}" ]; then
|
if [ ! -z "${line}" ]; then
|
||||||
[[ "${line}" =~ ^#.*$ || ! "${line}" ]] && continue
|
[[ "${line}" =~ ^#.*$ || ! "${line}" || "${line}" == "WEBPASSWORD="* ]] && continue
|
||||||
log_write "${line}"
|
log_write "${line}"
|
||||||
fi
|
fi
|
||||||
done < "${1}"
|
done < "${1}"
|
||||||
|
Loading…
Reference in New Issue
Block a user