Home | History | Annotate | Download | only in cookies

Lines Matching refs:Path

77   // The RFC says the path should be a prefix of the current URL path.
78 // However, Mozilla allows you to set any path for compatibility with
80 // to be generous and accept cookies with an invalid path attribute, and
81 // default the path to something reasonable.
83 // The path was supplied in the cookie, we'll take it.
87 // The path was not supplied in the cookie or invalid, we will default
88 // to the current URL path.
89 // """Defaults to the path of the request URL that generated the
93 const std::string& url_path = url.path();
97 // The cookie path was invalid or a single '/'.
114 const std::string& domain, const std::string& path,
122 path_(path),
178 path_string = pc.Path();
253 const std::string& path,
277 std::string parsed_path = ParsedCookie::ParseValueString(path);
278 if (parsed_path != path)
282 // Expect that the path was either not specified (empty), or is valid.
285 // Canonicalize path again to make sure it escapes characters as needed.
303 // creates a CanonicalCookie should make sure the path is never zero length,
308 // The Mozilla code broke this into three cases, based on if the cookie path
309 // was longer, the same length, or shorter than the length of the url path.
312 // Make sure the cookie path is a prefix of the url path. If the
313 // url path is shorter than the cookie path, then the cookie path
322 // In order to avoid in correctly matching a cookie path of /blah
323 // with a request path of '/blahblah/', we need to make sure that either
324 // the cookie path ends in a trailing '/', or that we prefix up to a '/'
325 // in the url path. Since we know that the url path length is greater
326 // than the cookie path length, it's safe to index one byte past.
380 // Don't include cookies for requests with a url path that does not path
381 // match the cookie-path.
382 if (!IsOnPath(url.path()))
390 "name: %s value: %s domain: %s path: %s creation: %"