[Pkg-mozext-commits] [wot] 166/226: Fixed #64 Encoded hostname is used in RW

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:47 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 08bc2d783af531bf8e53e0724dd1376ed5cf3f35
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Mon Sep 16 13:01:30 2013 +0300

    Fixed #64 Encoded hostname is used in RW
---
 content/ratingwindow.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/content/ratingwindow.js b/content/ratingwindow.js
index 3913242..675ddad 100644
--- a/content/ratingwindow.js
+++ b/content/ratingwindow.js
@@ -140,11 +140,12 @@ var wot_rw = {
             // prepare data for the RW
             data = {
                 target: target,
-                normalized: wot_shared.decodehostname(normalized_target),
                 updated: wot_cache.get(target, "time"),
                 cached: {
                     status: wot_cache.get(target, "status"),
-                    value: {},
+                    value: {
+                        normalized: wot_shared.decodehostname(normalized_target)
+                    },
                     comment: wot_cache.get_comment(target)
                 }
             };
@@ -172,11 +173,12 @@ var wot_rw = {
         } else {
             data = {
                 target: target,
-                normalized: target,
                 updated: null,
                 cached: {
                     status: WOT_QUERY_ERROR,
-                    value: {}
+                    value: {
+                        normalized: target
+                    }
                 }
             };
         }

-- 
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