3
1
Back

"$host$path/$rel"; /* 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 get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type); } function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(mangle_article($article); } catch (Exception $e) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } drugs & wires, pilotside From bab77fac9dc44b0a10d743c564c65ae0938027f6 Mon Sep 17 00:00:00.

New Pull Request