Strip ip, expire from Google Docs flashvars

This commit is contained in:
calzoneman 2013-11-08 17:57:14 -06:00
parent 181abfeda0
commit e737bc9f8a
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Fri Nov 08 17:55 2013 CDT
* lib/get-info.js: Strip "ip" and "expire" fields from Google Drive
flashvars
Thu Nov 07 17:18 2013 CDT
* lib/channel.js, lib/get-info.js, lib/media.js, lib/playlist.js,
www/assets/js/player.js, www/assets/js/util.js:

View File

@ -648,6 +648,10 @@ var Getters = {
for (var k in fv) {
if (k === "autoplay")
fv[k] = "1";
fv[k] = fv[k].replace(/(&|%26)ip(\=|%3D)[0-9\.]+/g,
"");
fv[k] = fv[k].replace(/(&|%26)expire(\=|%3D)[0-9]+/g,
"");
fvstr += "&" + k + "=" + encodeURIComponent(fv[k]);
}
fvstr = fvstr.substring(1);