now check base64 after bool check

master
Kevin Froman 2018-04-22 20:59:44 -05:00
parent c562fabbbd
commit 7199b0e5da
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 2 deletions

View File

@ -239,12 +239,12 @@ class OnionrCommunicate:
for i in peerList:
hasher = hashlib.sha3_256()
data = self.performGet('getData', i, hash)
if data == False or len(data) > 10000000:
continue
try:
base64.b64decode(data)
except binascii.Error:
data = b''
if data == False or len(data) > 10000000:
continue
hasher.update(data)
digest = hasher.hexdigest()
if type(digest) is bytes: