3
1
Back

''; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array( '#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#' ); for ($n = 1; // [0:No, 1:Yes] // Do you want to dig into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type); } function api_version() { return $base.$rel; if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // only keep everything starting at the first // only keep everything.

New Pull Request