3
1
Back

/VCA/commit/b1fcba1e78f37669542b35a3e32a5257c5c0240c" rel="nofollow">b1fcba1e78f37669542b35a3e32a5257c5c0240c b1fcba1e78f37669542b35a3e32a5257c5c0240c 2bb058d5715f395d3571ea05d3008566787a2bdb elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == .

New Pull Request