From 099e931a15634a3bede050ec522c2d232efa779f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 21 Sep 2013 12:24:49 +0200 Subject: [PATCH] Minor fix --- tamper/base64encode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tamper/base64encode.py b/tamper/base64encode.py index a417de3aa..d087c4392 100644 --- a/tamper/base64encode.py +++ b/tamper/base64encode.py @@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission import base64 from lib.core.enums import PRIORITY +from lib.core.settings import UNICODE_ENCODING __priority__ = PRIORITY.LOWEST @@ -22,4 +23,4 @@ def tamper(payload, **kwargs): 'MScgQU5EIFNMRUVQKDUpIw==' """ - return base64.b64encode(payload) if payload else payload + return base64.b64encode(payload.encode(UNICODE_ENCODING)) if payload else payload