Bug 1244505 - Allow spaces in cookie names. r=mcmanus, a=sylvestre
authorNicholas Hurley <hurley@todesschaf.org>
Mon, 01 Feb 2016 09:46:24 -0800
changeset 303785 9962682e5e75bbf2632badb298d3edb3034f8c3e
parent 303784 2aabafe497011d5f69567c613204795f584fbc72
child 303786 fae2fa0bf463eb419a29693588d958d48308fd23
push id9019
push usercbook@mozilla.com
push dateThu, 04 Feb 2016 13:39:06 +0000
treeherdermozilla-aurora@95df8a784121 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus, sylvestre
bugs1244505
milestone46.0a2
Bug 1244505 - Allow spaces in cookie names. r=mcmanus, a=sylvestre
netwerk/cookie/nsCookieService.cpp
--- a/netwerk/cookie/nsCookieService.cpp
+++ b/netwerk/cookie/nsCookieService.cpp
@@ -3189,17 +3189,17 @@ nsCookieService::SetCookieInternal(nsIUR
     return newCookie;
   }
 
   const char illegalNameCharacters[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
                                          0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C,
                                          0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12,
                                          0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
                                          0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E,
-                                         0x1F, 0x20, 0x00 };
+                                         0x1F, 0x00 };
   if (cookieAttributes.name.FindCharInSet(illegalNameCharacters, 0) != -1) {
     COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, savedCookieHeader, "invalid name character");
     return newCookie;
   }
 
   // domain & path checks
   if (!CheckDomain(cookieAttributes, aHostURI, aKey.mBaseDomain, aRequireHostMatch)) {
     COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, savedCookieHeader, "failed the domain tests");