mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-30 22:30:36 +03:00
luci: Allow single quotes into NFQWS2_OPT
This commit is contained in:
@@ -700,12 +700,11 @@ return baseclass.extend({
|
|||||||
if (value != "" && value != "\t") {
|
if (value != "" && value != "\t") {
|
||||||
value = '\n' + value + '\n';
|
value = '\n' + value + '\n';
|
||||||
if (this.multiline == 2) {
|
if (this.multiline == 2) {
|
||||||
if (value.includes("'") || value.includes('"')) {
|
if (value.includes('"')) {
|
||||||
alert(_('Unable to save the contents') + ':\n' + _('text cannot contain quotes!'));
|
alert(_('Unable to save the contents') + ':\n' + _('text cannot contain quotes!'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
value = value.replace(/"/g, '');
|
value = value.replace(/"/g, '');
|
||||||
value = value.replace(/'/g, '');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user