api/ui: datastore: allow to set simple comment
for now forbid all control characters[0] in the comment value, the section config writer cannot cope with newlines in the value, it writes them out literally, allowing "injection" or breaking the whole config. In the webinterface use also a textfield, not a textarea. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -111,8 +111,6 @@ Ext.define('PBS.DataStoreInputPanel', {
|
||||
onGetValues: function(values) {
|
||||
var me = this;
|
||||
|
||||
delete values.comment;
|
||||
|
||||
return values;
|
||||
},
|
||||
|
||||
@ -139,8 +137,7 @@ Ext.define('PBS.DataStoreInputPanel', {
|
||||
{
|
||||
xtype: 'textfield',
|
||||
name: 'comment',
|
||||
emptyText: 'Not yet submitted...',
|
||||
fieldLabel: gettext('Comment')
|
||||
fieldLabel: gettext('Comment'),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
Reference in New Issue
Block a user