From 1553d7b1aa8456eeb42f40e84f31a6b579dbf440 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Fri, 24 May 2024 08:14:00 +0200 Subject: [PATCH] Revert stripping "/" on local paths, see #151 --- src/wopiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wopiserver.py b/src/wopiserver.py index 203b5ba5..9d001c4a 100755 --- a/src/wopiserver.py +++ b/src/wopiserver.py @@ -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: