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

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/3470/head
DL6ER 4 years ago
parent 13a49b0753
commit 2b1bc6a46e
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

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

Loading…
Cancel
Save