From faf6994ec6031f548339ac827cf53af913337190 Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 28 Jan 2026 11:46:02 +0300 Subject: [PATCH] luci: Allow single quotes into NFQWS2_OPT --- .../htdocs/luci-static/resources/view/zapret2/tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js index 6fa0a75..7c0a00d 100644 --- a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js +++ b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/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 {