3
1
Back

Function hook_render_article_cdm($article) { return $base.$rel; if ($rel[0] == '/') { } /* dirty absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } /* dirty absolute URL */ $abs = preg_replace($re, .

New Pull Request