File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -146,15 +146,15 @@ def init(cls):
146
146
except OSError :
147
147
cls .log .error ('msg="Failed to open the provided certificate or key to start in https mode"' )
148
148
raise
149
- cls .wopiurl = cls .config .get ('general' , 'wopiurl' )
150
- cls .homepath = cls .config .get ('general' , 'homepath' , fallback = '/home/username' )
151
- cls .recoverypath = cls .config .get ('io' , 'recoverypath' , fallback = '/var/spool/wopirecovery' )
149
+ cls .wopiurl = cls .config .get ('general' , 'wopiurl' ). strip ( '/' )
150
+ cls .homepath = cls .config .get ('general' , 'homepath' , fallback = '/home/username' ). strip ( '/' )
151
+ cls .recoverypath = cls .config .get ('io' , 'recoverypath' , fallback = '/var/spool/wopirecovery' ). strip ( '/' )
152
152
try :
153
153
os .makedirs (cls .recoverypath )
154
154
except FileExistsError :
155
155
pass
156
156
# WOPI proxy configuration (optional)
157
- cls .wopiproxy = cls .config .get ('general' , 'wopiproxy' , fallback = '' )
157
+ cls .wopiproxy = cls .config .get ('general' , 'wopiproxy' , fallback = '' ). strip ( '/' )
158
158
cls .wopiproxykey = None
159
159
proxykeyfile = cls .config .get ('general' , 'wopiproxysecretfile' , fallback = '' )
160
160
if proxykeyfile :
You can’t perform that action at this time.
0 commit comments