From 42d8ee8ba672ab98c585b325aa1632e08be3cf63 Mon Sep 17 00:00:00 2001 From: remittor Date: Sat, 17 Jan 2026 13:57:49 +0300 Subject: [PATCH] luci: NFQWS_OPT: Block enter text with quotes --- .../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 61d11c6..5f8fd5f 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 @@ -525,6 +525,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, ''); }