2020-08-10 Fred Gleason <fredg@paravelsystems.com>

* Added a check in 'RDSvc::create()' to disallow creation of a
	service with a name containing whitespace.
	* Added whitespace to the set of banned characters for service names
	in the 'Add Service' dialog in rdadmin(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-08-10 13:17:27 -04:00
parent d4f76649e8
commit d433e3c631
12 changed files with 56 additions and 10 deletions

View File

@@ -48,10 +48,8 @@ AddSvc::AddSvc(QString *svcname,QWidget *parent)
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
setMinimumSize(sizeHint());
setMaximumSize(sizeHint());
setWindowTitle("RDAdmin - "+tr("Add Service"));
@@ -59,6 +57,8 @@ AddSvc::AddSvc(QString *svcname,QWidget *parent)
// Text Validator
//
RDTextValidator *validator=new RDTextValidator(this);
validator->addBannedChar(QChar(' '));
validator->addBannedChar(QChar('\t'));
//
// Service Name