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