From 694f5803b981778120a87aeb3323e0ea47445943 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Thu, 25 Jun 2015 08:45:28 +0200
Subject: [PATCH] Correction POST certifition + sauvegarde cache wallet

---
 src/cutecoin/core/app.py                  | 2 +-
 src/cutecoin/core/net/api/bma/__init__.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py
index beda94dd..0f98ca87 100644
--- a/src/cutecoin/core/app.py
+++ b/src/cutecoin/core/app.py
@@ -296,7 +296,7 @@ class Application(QObject):
             os.makedirs(os.path.join(config.parameters['home'],
                                      account.name, '__cache__'))
         wallet_path = os.path.join(config.parameters['home'],
-                                   account.name, '__cache__', wallet.pubkey)
+                                   account.name, '__cache__', wallet.pubkey + "_wal")
         with open(wallet_path, 'w') as outfile:
             data = wallet.jsonify_caches()
             data['version'] = __version__
diff --git a/src/cutecoin/core/net/api/bma/__init__.py b/src/cutecoin/core/net/api/bma/__init__.py
index 4d405479..29eea7b0 100644
--- a/src/cutecoin/core/net/api/bma/__init__.py
+++ b/src/cutecoin/core/net/api/bma/__init__.py
@@ -114,7 +114,7 @@ class API(object):
         logging.debug("POST : {0}".format(kwargs))
         post_data = QUrlQuery()
         for k,v in kwargs.items():
-            post_data.addQueryItem(k, v)
+            post_data.addQueryItem(k.replace("+", "%2b"), v.replace("+", "%2b"))
         url = QUrl(self.reverse_url(path))
         url.setQuery(post_data)
 
-- 
GitLab