mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge pull request #3470 from pi-hole/fix/escape_where_should_be_none
Replace possible "\#" by "#" to fix AdminLTE#1427
This commit is contained in:
commit
c9dd3ee2e9
1 changed files with 2 additions and 1 deletions
|
@ -226,7 +226,8 @@ SetDNSServers() {
|
||||||
IFS=',' read -r -a array <<< "${args[2]}"
|
IFS=',' read -r -a array <<< "${args[2]}"
|
||||||
for index in "${!array[@]}"
|
for index in "${!array[@]}"
|
||||||
do
|
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
|
done
|
||||||
|
|
||||||
if [[ "${args[3]}" == "domain-needed" ]]; then
|
if [[ "${args[3]}" == "domain-needed" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue