Bug 947814 - 0001. Assign length of data. r=vicamo

This commit is contained in:
Chuck Lee 2013-12-11 12:46:16 +08:00
parent ef480d31cc
commit 1f89f12bf3
2 changed files with 2 additions and 1 deletions

View File

@ -185,9 +185,9 @@ this.Authenticator = {
checked: false,
sec: AUTH_SEC_TYPE[sec],
mac: mac.toUpperCase(),
dataLength: wbxml.length,
data: wbxml
};
authInfo.data.length = wbxml.length;
switch (authInfo.sec) {
case "NETWPIN":

View File

@ -123,6 +123,7 @@ this.WapPushManager = {
contentType: contentType,
content: data.array
};
msg.content.length = data.array.length;
}
let sender = PhoneNumberUtils.normalize(options.sourceAddress, false);