3
1
Back

Users /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(mangle_article($article); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { function about() { return $article; } function hook_render_article_cdm($article) { return 2; } /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) .

New Pull Request