1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-31 11:10:55 +00:00

Replace possible "\#" by "#". This fixes AdminLTE#1427

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-06-04 09:32:15 +02:00
parent 13a49b0753
commit 2b1bc6a46e
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

View File

@ -226,7 +226,8 @@ SetDNSServers() {
IFS=',' read -r -a array <<< "${args[2]}"
for index in "${!array[@]}"
do
add_setting "PIHOLE_DNS_$((index+1))" "${array[index]}"
# Replace possible "\#" by "#". This fixes AdminLTE#1427
add_setting "PIHOLE_DNS_$((index+1))" "${array[index]//\\#/#}"
done
if [[ "${args[3]}" == "domain-needed" ]]; then