We should not use JSON.stringify() but leave escaping to AJAX itself

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-10-12 18:04:30 +02:00
parent e4e2ffabff
commit d2701f7955
9 changed files with 25 additions and 21 deletions

View File

@@ -315,12 +315,12 @@ function addFromQueryLog(domain, list) {
url: "/api/domains/" + list + "/exact",
method: "post",
dataType: "json",
data: JSON.stringify({
data: {
domain: domain,
comment: "Added from Query Log",
type: list,
kind: "exact",
}),
},
success: function (response) {
alProcessing.hide();
if ("domains" in response && response.domains.length > 0) {