3
1
Back

For Wondermark fix; added Oatmeal initial Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users /* absolute URL is ready! */ return $scheme.'://'.$abs; } function init($host) { // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || strpos($article['title'], $alt_text) !== False) { $alt_text = trim($img->getAttribute('alt')); if (!$alt_text && !$title_text) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ } /* dirty absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with .

New Pull Request