Skip to content

Commit

Permalink
corrected bug b64encodeing check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fausto Milletari committed Aug 1, 2018
1 parent 25bd55e commit 71cd624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomaat/server/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

def is_base64(s):
try:
if base64.encodestring(base64.decodestring(s)) == s:
if base64.b64encode(base64.b64decode(s)) == s:
return True
except:
pass
Expand Down

0 comments on commit 71cd624

Please sign in to comment.