61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
void *pool = objc_autoreleasePoolPush();
OFString *cookieDomain, *URLHost;
size_t i;
if (![cookie.path hasPrefix: @"/"])
cookie.path = @"/";
if (cookie.secure && ![URL.scheme isEqual: @"https"]) {
objc_autoreleasePoolPop(pool);
return;
}
cookieDomain = cookie.domain.lowercaseString;
cookie.domain = cookieDomain;
|
|
>
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
void *pool = objc_autoreleasePoolPush();
OFString *cookieDomain, *URLHost;
size_t i;
if (![cookie.path hasPrefix: @"/"])
cookie.path = @"/";
if (cookie.secure &&
[URL.scheme caseInsensitiveCompare: @"https"] != OF_ORDERED_SAME) {
objc_autoreleasePoolPop(pool);
return;
}
cookieDomain = cookie.domain.lowercaseString;
cookie.domain = cookieDomain;
|
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
OFString *cookieDomain, *URLHost, *cookiePath, *URLPath;
bool match;
expires = cookie.expires;
if (expires != nil && expires.timeIntervalSinceNow <= 0)
continue;
if (cookie.secure && ![URL.scheme isEqual: @"https"])
continue;
pool = objc_autoreleasePoolPush();
cookieDomain = cookie.domain.lowercaseString;
URLHost = URL.host.lowercaseString;
if ([cookieDomain hasPrefix: @"."]) {
|
|
>
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
OFString *cookieDomain, *URLHost, *cookiePath, *URLPath;
bool match;
expires = cookie.expires;
if (expires != nil && expires.timeIntervalSinceNow <= 0)
continue;
if (cookie.secure && [URL.scheme caseInsensitiveCompare:
@"https"] != OF_ORDERED_SAME)
continue;
pool = objc_autoreleasePoolPush();
cookieDomain = cookie.domain.lowercaseString;
URLHost = URL.host.lowercaseString;
if ([cookieDomain hasPrefix: @"."]) {
|