3
1
Back

MS-20. ** that one fails due to referer checks elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ } /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; } From 0d3d72c49e606725216a5a9a4217e6c039d5a574.

New Pull Request