Prevent full stop being interpreted as regex

Signed off by WaLLy3K <wally3k@pi-hole.net>
This commit is contained in:
WaLLy3K 2017-10-16 10:12:27 +11:00 committed by GitHub
parent 3b300a4d6a
commit 80c40e6050

3
pihole
View file

@ -85,7 +85,8 @@ updateGravityFunc() {
# Scan an array of files for matching strings # Scan an array of files for matching strings
scanList(){ scanList(){
local domain="${1}" lists="${2}" type="${3:-}" # Escape full stops
local domain="${1//./\\.}" lists="${2}" type="${3:-}"
# Prevent grep from printing file path # Prevent grep from printing file path
cd "/etc/pihole" || exit 1 cd "/etc/pihole" || exit 1