From b0953bbaaf5b05ec8908de50e99a567d83bdc92a Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 13 Nov 2024 21:23:01 +0300 Subject: [PATCH] luci: Add removing quotes from DESYNC_OPT param --- .../htdocs/luci-static/resources/view/zapret/tools.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js index f578f71..c853887 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js @@ -429,6 +429,10 @@ return baseclass.extend({ value = value.replace(/\r/g, ''); if (value != "" && value != "\t") { value = '\n' + value + '\n'; + if (this.multiline == 2) { + value = value.replace(/"/g, ''); + value = value.replace(/'/g, ''); + } } } else { value = value.replace(/\r\n/g, ' ');