fix #11
This commit is contained in:
parent
b07a064e59
commit
a7eed9b41d
2 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ function buildList() {
|
|||
|
||||
var headertext = document.createElement("h3");
|
||||
headertext.classList.add("w3-left");
|
||||
headertext.appendChild(document.createTextNode(getCookie(i + "provName")));
|
||||
headertext.appendChild(document.createTextNode(decodeURIComponent(getCookie(i + "provName"))));
|
||||
|
||||
var headerdel = document.createElement("button");
|
||||
headerdel.classList.add("w3-button");
|
||||
|
@ -60,7 +60,7 @@ function buildList() {
|
|||
var dns2v4 = getCookie(i + "dns2v4");
|
||||
var dns1v6 = getCookie(i + "dns1v6");
|
||||
var dns2v6 = getCookie(i + "dns2v6");
|
||||
var exclWifi = getCookie(i + "exclWifi");
|
||||
var exclWifi = decodeURIComponent(getCookie(i + "exclWifi"));
|
||||
|
||||
if (dns1v4 != "") {
|
||||
infostring = "Primary IPv4 DNS Server: " + getCookie(i + "dns1v4");
|
||||
|
@ -211,7 +211,7 @@ function saveDynamicDataToFile() {
|
|||
} else {
|
||||
encValue = "TLS";
|
||||
}
|
||||
var exclWifi = getCookie(i + "exclWifi")
|
||||
var exclWifi = decodeURIComponent(getCookie(i + "exclWifi"));
|
||||
|
||||
fileString += "<dict>\n";
|
||||
fileString += "<key>DNSSettings</key>\n";
|
||||
|
|
|
@ -23,14 +23,14 @@ function addToList() {
|
|||
var d = new Date();
|
||||
d.setTime(d.getTime() + (86400000)); //expires in 24h
|
||||
var expires = "expires="+ d.toUTCString();
|
||||
document.cookie = runningNo + "provName=" + document.getElementById("provName").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "provName=" + encodeURIComponent(document.getElementById("provName").value) + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "doh=" + document.getElementById("doh").checked + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "dns1v4=" + document.getElementById("dns1v4").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "dns2v4=" + document.getElementById("dns2v4").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "dns1v6=" + document.getElementById("dns1v6").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "dns2v6=" + document.getElementById("dns2v6").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "serverUrl=" + document.getElementById("serverUrl").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "exclWifi=" + document.getElementById("exclWifi").value + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "exclWifi=" + encodeURIComponent(document.getElementById("exclWifi").value) + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "useWifi=" + document.getElementById("useWifi").checked + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "useCell=" + document.getElementById("useCell").checked + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
document.cookie = runningNo + "lockProfile=" + document.getElementById("lockProfile").checked + ";" + expires + ";path=/; SameSite=Strict; Secure";
|
||||
|
|
Loading…
Add table
Reference in a new issue