]> code.delx.au - youtube-cgi/commitdiff
added window.history.pushState to fix signature check
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 15 Sep 2014 21:39:34 +0000 (07:39 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 15 Sep 2014 21:39:34 +0000 (07:39 +1000)
youtube.cgi

index 6495c8d663d44d0b131595409b7d07d2dbec3b6d..eeb5fd2cafba83977817a8c776191786fe28dbe3 100755 (executable)
@@ -169,7 +169,10 @@ def decode_signature(js_url, signature):
 
         var sandbox = {
             window: {
-                location: {}
+                location: {},
+                history: {
+                    pushState: function(){}
+                }
             },
             document: {},
             navigator: {},