[Pkg-mozext-commits] [perspectives-extension] 34/72: changed in add_der_signature_header: removed URIComponent codex because we're getting an actual byte array
David Prévot
taffit at moszumanska.debian.org
Thu Dec 11 02:12:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 621b995faec3192013b92e02efe52744461b9e64
Author: Gerold Meisinger <gerold.meisinger at gmail.com>
Date: Sat Oct 18 14:42:26 2014 +0100
changed in add_der_signature_header: removed URIComponent codex because we're getting an actual byte array
---
plugin/chrome/content/common.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/chrome/content/common.js b/plugin/chrome/content/common.js
index ffff38b..cd74137 100644
--- a/plugin/chrome/content/common.js
+++ b/plugin/chrome/content/common.js
@@ -210,7 +210,7 @@ var Pers_util = {
// here, and re-encode the signature in base64.
// see firefox-v2/xp_src/moz_crypto.cpp for details of header format
add_der_signature_header: function(sig_base64) {
- var base_str = decodeURIComponent(window.atob(sig_base64));
+ var base_str = window.atob(sig_base64);
var der_header_md5 = ["0x30", "0x81", "0xbf", "0x30", "0x0d", "0x06",
"0x09", "0x2a", "0x86", "0x48", "0x86", "0xf7",
"0x0d", "0x01", "0x01", "0x04", "0x05", "0x00",
@@ -219,7 +219,7 @@ var Pers_util = {
for (var i = 0; i < der_header_md5.length; i++) {
header_str += String.fromCharCode(parseInt(der_header_md5[i],16));
}
- return window.btoa(encodeURIComponent(header_str + base_str));
+ return window.btoa(header_str + base_str);
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list