-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API parameters with escaped characters fail in IE7-9. Fix #19
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* A Twitter library in JavaScript | ||
* | ||
* @package codebird | ||
* @version 2.4.1-rc1 | ||
* @version 2.4.1 | ||
* @author J.M. <[email protected]> | ||
* @copyright 2010-2013 J.M. <[email protected]> | ||
* | ||
|
@@ -126,7 +126,7 @@ var Codebird = function () { | |
/** | ||
* The current Codebird version | ||
*/ | ||
var _version = "2.4.1-rc1"; | ||
var _version = "2.4.1"; | ||
|
||
/** | ||
* Sets the OAuth consumer key and secret (App key) | ||
|
@@ -774,14 +774,14 @@ var Codebird = function () { | |
var oauth_params = _clone(sign_base_params); | ||
for (key in params) { | ||
value = params[key]; | ||
sign_base_params[key] = _url(value); | ||
sign_base_params[key] = value; | ||
} | ||
var keys = _ksort(sign_base_params); | ||
var sign_base_string = ""; | ||
for (var i = 0; i < keys.length; i++) { | ||
key = keys[i]; | ||
value = sign_base_params[key]; | ||
sign_base_string += key + "=" + value + "&"; | ||
sign_base_string += key + "=" + _url(value) + "&"; | ||
} | ||
sign_base_string = sign_base_string.substring(0, sign_base_string.length - 1); | ||
var signature = _sha1(httpmethod + "&" + _url(method) + "&" + _url(sign_base_string)); | ||
|