Lines Matching refs:url
183 public static function fix_protocol($url, $http = 1)
185 $url = Misc::normalize_url($url);
186 $parsed = Misc::parse_url($url);
191 if ($parsed['scheme'] === '' && $parsed['authority'] === '' && !file_exists($url)) {
196 return "feed:$url";
198 return substr_replace($url, 'podcast', 0, 4);
200 return substr_replace($url, 'itpc', 0, 4);
203 return $url;
222 public static function parse_url($url)
224 $iri = new \SimplePie\IRI($url);
245 public static function normalize_url($url)
247 $iri = new \SimplePie\IRI($url);
2171 * @param string $url the URL to sanitize.
2174 public static function url_remove_credentials($url)
2176 return preg_replace('#^(https?://)[^/:@]+:[^/:@]+@#i', '$1', $url);