3
1
Back

F33ea6a168 Go to file From c9e81f0cc630cea052574ce7c50b3e82145bb626 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Various updates, additions /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ } function api_version() { return $rel; } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Breaking Cat News elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { if ($rel[0.

New Pull Request