From c574e04a2b597454595046f3daa0599179c9ca16 Mon Sep 17 00:00:00 2001 From: remittor Date: Sat, 17 Jan 2026 15:52:46 +0300 Subject: [PATCH] luci: NFQWS2_OPT: Block enter text with quotes --- .../htdocs/luci-static/resources/view/zapret2/tools.js | 4 ++++ 1 file changed, 4 insertions(+) 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 f505aee..7d34b1a 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 @@ -531,6 +531,10 @@ return baseclass.extend({ if (value != "" && value != "\t") { value = '\n' + value + '\n'; if (this.multiline == 2) { + if (value.includes("'") || value.includes('"')) { + alert(_('Unable to save the contents') + ':\n' + _('text cannot contain quotes!')); + return false; + } value = value.replace(/"/g, ''); value = value.replace(/'/g, ''); }