Skip to content

Commit

Permalink
prevent CSW connection names with "/" to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Feb 23, 2015
1 parent e815105 commit e04570c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/plugins/MetaSearch/dialogs/newconnectiondialog.py
Expand Up @@ -57,6 +57,11 @@ def accept(self):
self.tr('Both Name and URL must be provided')) self.tr('Both Name and URL must be provided'))
return return


if '/' in conn_name:
QMessageBox.warning(self, self.tr('Save connection'),
self.tr('Name cannot contain \'/\''))
return

if conn_name is not None: if conn_name is not None:
key = '/MetaSearch/%s' % conn_name key = '/MetaSearch/%s' % conn_name
keyurl = '%s/url' % key keyurl = '%s/url' % key
Expand Down

0 comments on commit e04570c

Please sign in to comment.