Lines Matching refs:target
108 $target = parse_url($request_url);
109 if ($target === false) {
117 if ($this->cookieMatchesTarget($cookie, $target)) {
311 * @param array|false $target An array of URL attributes as generated by parse_url().
317 protected function cookieMatchesTarget ($cookie, $target) argument
319 if (!is_array($target)) {
324 if (!isset($target['host'])) {
331 if ($cookie['secure'] && $target['scheme'] != 'https') {
339 if (substr($cookie['domain'], 1) == $target['host']) {
344 $pos = strripos($target['host'], $cookie['domain']);
349 if ($pos + strlen($cookie['domain']) != strlen($target['host'])) {
355 $hostname = substr($target['host'], 0, $pos);
363 if (strcasecmp($target['host'], $cookie['domain']) !== 0) {
370 && !in_array($target['port'], $cookie['ports'])
376 if (strpos($target['path'], $cookie['path']) !== 0) {