protected function toRefererUrl(Zend_Uri $uri) { if ($uri->getPort() == '80') { return $uri->getScheme() . '://' . $uri->getHost() . $uri->getPath() . $uri->getQuery(); } return (string) $uri; }
/** * ignore port and fragment * for match siteinfo(wedata)'s url-regex * */ private function toUrl(Zend_Uri $uri) { $port = $uri->getPort(); $port = ($port > 0 and $port != '80') ? ':' . $port : ''; return $uri->getScheme() . '://' . $uri->getHost() . $port . $uri->getPath() . $uri->getQuery(); }