summaryrefslogtreecommitdiff
path: root/poezio/xhtml.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/xhtml.py')
-rw-r--r--poezio/xhtml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py
index 9ddbb939..6da6e0da 100644
--- a/poezio/xhtml.py
+++ b/poezio/xhtml.py
@@ -295,7 +295,7 @@ def trim(string):
def get_hash(data: bytes) -> str:
# Currently using SHA-256, this might change in the future.
# base64 gives shorter hashes than hex, so use that.
- return b64encode(hashlib.sha256(data).digest()).rstrip(b'=').decode()
+ return b64encode(hashlib.sha256(data).digest()).rstrip(b'=').replace(b'/', b'-').decode()
class XHTMLHandler(sax.ContentHandler):
def __init__(self, force_ns=False, tmp_dir=None, extract_images=False):