3
1
Back

_comics/init.php 264 lines define('ADD_IDS', True); class _comics extends Plugin { function hook_render_article($article) { return 2; } /* dirty absolute URL */ /* 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; } From 0d3d72c49e606725216a5a9a4217e6c039d5a574 Mon Sep 17 00:00:00 2001 Subject: [PATCH] rm old format files 4 files changed, 623 deletions(- delete mode.

New Pull Request