Skip to content

Commit 9a8018c

Browse files
I believe this fix was mistaken
In the issue carhartl/jquery-cookie#155, maxim-dev says "Of course, I had to code the name using urlencode() (for PHP, for example), but I did not (my fault, I admit it)". So, the user acknowledged that he was wrong and the issue was about the wrong "$.removeCookie" return value instead of the fact the key had the "[]" square bracket characters. In RFC 6265 it's clear that a token (cookie-name) should NOT contain square brackets characters. In the issue above, the brackets in the cookie-name was the problem in the first place, and the OP acknowledged that, so the fix to allow square brackets in the name is unnecessary.
1 parent a0c5226 commit 9a8018c

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎test/tests.js‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,6 @@ test('passing options reference', function () {
210210
deepEqual(options, { path: '/' }, "won't alter options object");
211211
});
212212

213-
// TODO: Need to handle this without the raw option because [] are not allowed in cookie-name
214-
// github.com/carhartl/jquery-cookie/issues/155
215-
//test('[] used in name', function () {
216-
// expect(1);
217-
// document.cookie = 'c[1]=foo';
218-
// Cookies.remove('c[1]');
219-
// strictEqual(document.cookie, '', 'delete the cookie');
220-
//});
221-
222213
module('converters', lifecycle);
223214

224215
test('read converter', function () {

0 commit comments

Comments
 (0)