Skip to content

Commit

Permalink
Ensure we load meta files with utf8 encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Dec 13, 2021
1 parent 5ce8446 commit 6a6ad37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kanmail/server/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_meta_file(filename):
if not path.exists(file_path):
abort(404, 'This file does not exist!')

with open(file_path, 'r') as f:
with open(file_path, 'r', encoding='utf-8') as f:
file_data = f.read()

file_data = markdownify(file_data, linkify=False)
Expand Down

0 comments on commit 6a6ad37

Please sign in to comment.