Skip to content

Commit

Permalink
quote filenames to strings without '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Dec 7, 2019
1 parent 486bc2b commit 9bb6d8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Nagstamon/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class AppInfo(object):
contains app information previously located in GUI.py
"""
NAME = 'Nagstamon'
VERSION = '3.4rc1'
VERSION = '3.4.rc2'
WEBSITE = 'https://nagstamon.ifw-dresden.de'
COPYRIGHT = '©2008-2019 Henri Wahl et al.'
COMMENTS = 'Nagios status monitor for your desktop'
Expand Down Expand Up @@ -528,7 +528,7 @@ def LoadMultipleConfig(self, settingsdir, setting, configobj):
settings[name].__setattr__(i[0], value)

# if filename is still one of the non-URL-ones delete duplicate file
if settingsfile != '{0}_{1}.conf'.format(setting, quote(name)):
if settingsfile != '{0}_{1}.conf'.format(setting, quote(name, safe='')):
self.delete_file(settingsdir, settingsfile)
# set flag to store the settings via legacy adjustments
self.save_config_after_urlencode = True
Expand Down Expand Up @@ -666,7 +666,7 @@ def SaveMultipleConfig(self, settingsdir, setting):
os.sep,
settingsdir,
setting,
quote(s))),
quote(s, safe=''))),
'w') as file:
config.write(file)

Expand Down
4 changes: 2 additions & 2 deletions build/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nagstamon (3.4rc1) stable; urgency=low
nagstamon (3.4rc2) stable; urgency=low
* New upstream
- added multiple item selection and actions execution
- added notification for OK state
Expand All @@ -20,7 +20,7 @@ nagstamon (3.4rc1) stable; urgency=low
- op5Monitor fixes
- Sensu fixes

-- Henri Wahl <[email protected]> Mon, 2 Dec 2019 10:00:00 +0100
-- Henri Wahl <[email protected]> Sat, 7 Dec 2019 10:00:00 +0100

nagstamon (3.2.1) stable; urgency=low
* New upstream
Expand Down

0 comments on commit 9bb6d8f

Please sign in to comment.