@@ 255-260 (lines=6) @@ | ||
252 | $this->type = $type; |
|
253 | $this->width = $width; |
|
254 | ||
255 | if (class_exists('idna_convert')) |
|
256 | { |
|
257 | $idn = new idna_convert(); |
|
258 | $parsed = SimplePie_Misc::parse_url($link); |
|
259 | $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); |
|
260 | } |
|
261 | $this->handler = $this->get_handler(); // Needs to load last |
|
262 | } |
|
263 |
@@ 70-75 (lines=6) @@ | ||
67 | ||
68 | public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) |
|
69 | { |
|
70 | if (class_exists('idna_convert')) |
|
71 | { |
|
72 | $idn = new idna_convert(); |
|
73 | $parsed = SimplePie_Misc::parse_url($url); |
|
74 | $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); |
|
75 | } |
|
76 | $this->url = $url; |
|
77 | $this->useragent = $useragent; |
|
78 | if (preg_match('/^http(s)?:\/\//i', $url)) |