mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 12:50:35 +03:00
luci: NFQWS2_OPT: Block enter text with quotes
This commit is contained in:
@@ -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, '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user