mirror of https://github.com/aria2/aria2
2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that prevents cookies from being sent to the server if the domain of cookie is FQDN and starts with ".". * src/Cookie.cc (match)pull/1/head
parent
247b1f2a4f
commit
6e7893c848
|
@ -1,3 +1,9 @@
|
||||||
|
2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Fixed the bug that prevents cookies from being sent to the server
|
||||||
|
if the domain of cookie is FQDN and starts with ".".
|
||||||
|
* src/Cookie.cc (match)
|
||||||
|
|
||||||
2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Fixed the bug that prevents filename in content-disposition from
|
Fixed the bug that prevents filename in content-disposition from
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
bool Cookie::match(const string& host, const string& dir, time_t date, bool secure) const
|
bool Cookie::match(const string& host, const string& dir, time_t date, bool secure) const
|
||||||
{
|
{
|
||||||
if((secure || !this->secure && !secure) &&
|
if((secure || !this->secure && !secure) &&
|
||||||
Util::endsWith(host, this->domain) &&
|
Util::endsWith("."+host, this->domain) &&
|
||||||
Util::startsWith(dir, this->path) &&
|
Util::startsWith(dir, this->path) &&
|
||||||
(this->onetime || date < this->expires)) {
|
(this->onetime || date < this->expires)) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue