summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-19 01:04:47 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-19 01:04:47 +0100
commit84693b6524e98e8201dbb90f7dd9c33e580cfa00 (patch)
tree55a611549a635e52770442fed7b6daa9c4ab23da /core/views/expo.py
parent5ac6bfd49a3faa0ab7126a6911e1edab4e79cf8e (diff)
downloadtroggle-84693b6524e98e8201dbb90f7dd9c33e580cfa00.tar.gz
troggle-84693b6524e98e8201dbb90f7dd9c33e580cfa00.tar.bz2
troggle-84693b6524e98e8201dbb90f7dd9c33e580cfa00.zip
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 3d7a318..57f6eb8 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -331,7 +331,7 @@ def editexpopage(request, path):
# GIT see also core/models/cave.py writetrogglefile()
# GIT see also core/views/uploads.py dwgupload()
try:
- with open(filepath.encode(sysdefaultencoding), "w") as f:
+ with open(os.path.normpath(filepath).encode(sysdefaultencoding), "w") as f:
print(f'WRITING{cwd}---{filename} ')
# as the wsgi process www-data, we have group write-access but are not owner, so cannot chmod.
# os.chmod(filepath, 0o664) # set file permissions to rw-rw-r--