(bug 44010) FauxRequest leaks cookie data from primary request
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Wed, 16 Jan 2013 09:45:36 +0000 (09:45 +0000)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Wed, 16 Jan 2013 09:45:36 +0000 (09:45 +0000)
Change-Id: I6baf972352fd69660c09a5d413ff55b81aa31305

includes/WebRequest.php

index fc1cdb5..68d22a8 100644 (file)
@@ -1314,6 +1314,10 @@ class FauxRequest extends WebRequest {
                return $this->wasPosted;
        }
 
+       public function getCookie( $key, $prefix = null, $default = null ) {
+               return $default;
+       }
+
        public function checkSessionCookie() {
                return false;
        }