diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:44:57 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:44:57 +0100 |
commit | 26e952154e37fa2ded8a9574fbbb3a4d8e39299e (patch) | |
tree | e1253f8a746a99985b208350c3665672537c3052 /core/views/expo.py | |
parent | e33ce724c04b9ccfc7ef09e5648546c95724f481 (diff) | |
download | troggle-26e952154e37fa2ded8a9574fbbb3a4d8e39299e.tar.gz troggle-26e952154e37fa2ded8a9574fbbb3a4d8e39299e.tar.bz2 troggle-26e952154e37fa2ded8a9574fbbb3a4d8e39299e.zip |
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index b282b40..5844445 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -123,7 +123,7 @@ def expofilesdir(request, dirpath, filepath): def expowebpage(request, expowebpath, path): '''Adds menus and serves an HTML page ''' - if not Path(expowebpath / path).is_file(): + if not os.path.is_file(os.path.normpath(expowebpath / path).encode(sysdefaultencoding)): # Should not get here if the path has suffix "_edit" print(f' - 404 error in expowebpage() {path}') return render(request, 'pagenotfound.html', {'path': path}, status="404") |