3
1
Back

$orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $rel; } /* replace '//' or '/./' or '/foo/../' with '/' */ } function hook_render_article_cdm($article) { function about() { return array(0.1, return array( $html, $content_type); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; // [0:Flat, 1:Recessed, 2:Dome] .

New Pull Request