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

@ -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);