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, ''); }