[Pkg-mozext-commits] [wot] 180/226: Fixed #75 Can't fetch & submit a comment for a cyrillic domain

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository wot.

commit d5901918895a88f0a477be2747de55a0b765d8f7
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Fri Oct 25 11:19:41 2013 +0300

    Fixed #75 Can't fetch & submit a comment for a cyrillic domain
---
 content/api.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/content/api.js b/content/api.js
index 172fa17..160a1c7 100644
--- a/content/api.js
+++ b/content/api.js
@@ -1223,12 +1223,12 @@ var wot_api_comments = {
 
             params.id = wot_prefs.witness_id;
             params.nonce = nonce;
-            params.version = WOT_PLATFORM + "-" +WOT_VERSION;
+            params.version = WOT_PLATFORM + "-" + WOT_VERSION;
 
             options = options || { type: "GET" };
 
             if (options.encryption) {
-                params.target = wot_crypto.encrypt(params.target, nonce);
+                params.target = wot_crypto.encrypt(wot_idn.utftoidn(params.target), nonce);
             }
 
             var components = [];
@@ -1350,9 +1350,9 @@ var wot_api_comments = {
 
         // try to restore pending submission first
         var state = wot_prefs.getJSON(pref_pending_name, {
-            target: target,
-            comment_data: {},
-            tries: 0
+	        target: target,
+	        comment_data: {},
+	        tries: 0
         });
 
         // if params are given, it means we are on normal way of sending data (not on retrying)
@@ -1593,4 +1593,4 @@ var wot_api_comments = {
 
         wot_rw.update_ratingwindow_comment(); // to update status "the website is commented by the user"
     }
-};
\ No newline at end of file
+};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/wot.git



More information about the Pkg-mozext-commits mailing list