Skip to content
Permalink
Browse files

prevent CSW connection names with "/" to be set

  • Loading branch information
tomkralidis committed Feb 23, 2015
1 parent e815105 commit e04570cc89d30f38430a5e71cfb795971c40afe0
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/MetaSearch/dialogs/newconnectiondialog.py
@@ -57,6 +57,11 @@ def accept(self):
self.tr('Both Name and URL must be provided'))
return

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

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

0 comments on commit e04570c

Please sign in to comment.
You can’t perform that action at this time.