3
1
Back

Already present elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // And get blog $entries = $xpath->query($query); $result_html = ''; } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function hook_render_article($article) { try { return $rel; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } function mangle_article($article) { .

New Pull Request