forked from 0x2620/pandora
fix url encoding
This commit is contained in:
parent
43ee3531bf
commit
2c3cf67776
1 changed files with 3 additions and 1 deletions
|
@ -1008,7 +1008,9 @@ pandora.getPart = function(state, str, callback) {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
} else if (state.page == 'tv') {
|
} else if (state.page == 'tv') {
|
||||||
var split = str.replace(/%20/g, ' ').split(':'), user, name;
|
// FIXME: decoding shouldn't have to happen here
|
||||||
|
str = str.replace(/%20/g, ' ');
|
||||||
|
var split = str.split(':'), user, name;
|
||||||
if (split.length >= 2) {
|
if (split.length >= 2) {
|
||||||
user = split.shift();
|
user = split.shift();
|
||||||
name = split.join(':');
|
name = split.join(':');
|
||||||
|
|
Loading…
Reference in a new issue