3
1
Back

'', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); /* 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 hook_render_article_cdm($article) { return $this->mangle_article($article); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; // Wondermark (alt tag already.

New Pull Request