134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
cookieDomain = cookie.domain.lowercaseString;
URLHost = URL.host.lowercaseString;
if ([cookieDomain hasPrefix: @"."]) {
if ([URLHost hasSuffix: cookieDomain])
match = true;
else {
cookieDomain = [cookieDomain substringWithRange:
of_range(1, cookieDomain.length - 1)];
match = [cookieDomain isEqual: URLHost];
}
} else
match = [cookieDomain isEqual: URLHost];
if (!match) {
|
|
|
|
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
cookieDomain = cookie.domain.lowercaseString;
URLHost = URL.host.lowercaseString;
if ([cookieDomain hasPrefix: @"."]) {
if ([URLHost hasSuffix: cookieDomain])
match = true;
else {
cookieDomain =
[cookieDomain substringFromIndex: 1];
match = [cookieDomain isEqual: URLHost];
}
} else
match = [cookieDomain isEqual: URLHost];
if (!match) {
|