3
1
Back

Otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function hook_render_article($article) { return $base.$rel; if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re.

New Pull Request