We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7857352 commit 907a41cCopy full SHA for 907a41c
app/jekylledit/controllers/site.py
@@ -242,7 +242,7 @@ def update(site_id):
242
if sha_name != 'sha1':
243
abort(501)
244
245
- mac = hmac.new(str(secret), msg=request.data, digestmod=sha1)
+ mac = hmac.new(bytes(secret, 'utf-8'), msg=request.data, digestmod=sha1)
246
if not hmac.compare_digest(str(mac.hexdigest()), str(signature)):
247
abort(403)
248
else:
0 commit comments