Skip to content

Commit

Permalink
Revert stripping "/" on local paths, see #151
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed May 24, 2024
1 parent d0e1e5f commit 1553d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wopiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def init(cls):
cls.log.error('msg="Failed to open the provided certificate or key to start in https mode"')
raise
cls.wopiurl = cls.config.get('general', 'wopiurl').strip('/')
cls.homepath = cls.config.get('general', 'homepath', fallback='/home/username').strip('/')
cls.recoverypath = cls.config.get('io', 'recoverypath', fallback='/var/spool/wopirecovery').strip('/')
cls.homepath = cls.config.get('general', 'homepath', fallback='/home/username')
cls.recoverypath = cls.config.get('io', 'recoverypath', fallback='/var/spool/wopirecovery')
try:
os.makedirs(cls.recoverypath)
except FileExistsError:
Expand Down

0 comments on commit 1553d7b

Please sign in to comment.