From 16d28be8061b5fec303b6a1c1080f4b39beb409b Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 28 Jan 2026 11:45:16 +0300 Subject: [PATCH] luci: Allow single quotes into NFQWS_OPT --- .../htdocs/luci-static/resources/view/zapret/tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 9457d5a..0f01e45 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 @@ -700,12 +700,11 @@ return baseclass.extend({ if (value != "" && value != "\t") { value = '\n' + value + '\n'; if (this.multiline == 2) { - if (value.includes("'") || value.includes('"')) { + if (value.includes('"')) { alert(_('Unable to save the contents') + ':\n' + _('text cannot contain quotes!')); return false; } value = value.replace(/"/g, ''); - value = value.replace(/'/g, ''); } } } else {