We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4368e8c commit ec57140Copy full SHA for ec57140
1 file changed
ietf/ipr/mail.py
@@ -9,6 +9,7 @@
9
import re
10
11
from django.template.loader import render_to_string
12
+from django.utils.encoding import force_text
13
14
import debug # pyflakes:ignore
15
@@ -96,7 +97,7 @@ def get_reply_to():
96
97
address with "plus addressing" using a random string. Guaranteed to be unique"""
98
local,domain = get_base_ipr_request_address().split('@')
99
while True:
- rand = base64.urlsafe_b64encode(os.urandom(12))
100
+ rand = force_text(base64.urlsafe_b64encode(os.urandom(12)))
101
address = "{}+{}@{}".format(local,rand,domain)
102
q = Message.objects.filter(reply_to=address)
103
if not q:
0 commit comments