Merge pull request #1091 from patriot1burke/master

fix query parsing
This commit is contained in:
Bill Burke 2015-03-26 13:07:00 -04:00
commit 019766fba1

View file

@ -567,7 +567,12 @@
var oauth = {}; var oauth = {};
oauth.newUrl = url.split('?')[0]; oauth.newUrl = url.split('?')[0];
var params = url.split('?')[1].split('&'); var paramString = url.split('?')[1];
var fragIndex = paramString.indexOf('#');
if (fragIndex != -1) {
paramString = paramString.substring(0, fragIndex);
}
var params = paramString.split('&');
for (var i = 0; i < params.length; i++) { for (var i = 0; i < params.length; i++) {
var p = params[i].split('='); var p = params[i].split('=');
switch (decodeURIComponent(p[0])) { switch (decodeURIComponent(p[0])) {