3
1
Back

PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return array(0.1, return array( 0.1, 'Yet more stupid-simple comic-fetching.', } function get_xpath_dealie($link) { $abs = "$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! .

New Pull Request