Skip to content

Commit 6170811

Browse files
committedFeb 28, 2017
Merge branch 'hotfix/1.5.6'
2 parents 34422f4 + 7945d93 commit 6170811

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if sys.version_info.major < 3:
1111
raise Exception("Python 3.x is required. Your version is %s." % sys.version)
1212

13-
__version__ = "1.5.5"
13+
__version__ = "1.5.6"
1414

1515
parser = argparse.ArgumentParser(description="EH Forwarder Bot is an extensible chat tunnel framework which allows "
1616
"users to contact people from other chat platforms, and ultimately "

‎plugins/eh_telegram_master/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,8 @@ def stop_polling(self, val):
12731273

12741274
@staticmethod
12751275
def b64en(s):
1276-
return base64.b64encode(s.encode()).decode()
1276+
return base64.b64encode(s.encode(), b"-_").decode().rstrip("=")
12771277

12781278
@staticmethod
12791279
def b64de(s):
1280-
return base64.b64decode(s).decode()
1280+
return base64.b64decode((s + '=' * (- len(s) % 4)).encode(), b"-_").decode()

0 commit comments

Comments
 (0)
Please sign in to comment.