From 2b1bc6a46e3de1235083f42cc0ed0f7d0d8aa7a4 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 4 Jun 2020 09:32:15 +0200 Subject: [PATCH] Replace possible "\#" by "#". This fixes AdminLTE#1427 Signed-off-by: DL6ER --- advanced/Scripts/webpage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 6a8fa64d..0fabdeb4 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -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