Fix typo in cookie key
authorBryan Davis <bd808@wikimedia.org>
Mon, 25 Jan 2016 16:02:59 +0000 (09:02 -0700)
committerBryan Davis <bd808@wikimedia.org>
Mon, 25 Jan 2016 16:02:59 +0000 (09:02 -0700)
Fix typo in cookie key name introduced in I1098d05

Bug: T124641
Change-Id: Ib140aa61ba56844191304c4308052148c728bc64

includes/WebResponse.php

index 7746edd..fd48005 100644 (file)
@@ -141,7 +141,7 @@ class WebResponse {
                        );
 
                        // Per RFC 6265, key is name + domain + path
-                       $key = "{$data['name']}\n{$data['domain']}\n{$date['path']}";
+                       $key = "{$data['name']}\n{$data['domain']}\n{$data['path']}";
 
                        // If this cookie name was in the request, fake an entry in
                        // self::$setCookies for it so the deleting check works right.