luci: Allow single quotes into NFQWS2_OPT

This commit is contained in:
remittor
2026-01-28 11:46:02 +03:00
parent 821fedf525
commit faf6994ec6

View File

@@ -700,12 +700,11 @@ return baseclass.extend({
if (value != "" && value != "\t") {
value = '\n' + value + '\n';
if (this.multiline == 2) {
if (value.includes("'") || value.includes('"')) {
if (value.includes('"')) {
alert(_('Unable to save the contents') + ':\n' + _('text cannot contain quotes!'));
return false;
}
value = value.replace(/"/g, '');
value = value.replace(/'/g, '');
}
}
} else {