3
1
Back

$base $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = ''; function get_xpath_dealie($link) { $abs = "$host$path/$rel"; function api_version() { return array(0.1, return array( $html, $content_type); } function hook_render_article($article) { try { return $this->mangle_article($article); } function hook_render_article_cdm($article) { } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL */ $abs = "$host$path/$rel"; function api_version() .

New Pull Request