3
1
Back

URL is ready! */ return $scheme . '://' . $abs; } From 0d3d72c49e606725216a5a9a4217e6c039d5a574 Mon Sep 17 00:00:00 2001 Subject: [PATCH 2/2] 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 // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if ($img->getAttribute('title')) { $article['content'] = $doc->saveXML(); } // Timothy Winchester (People I Know) $article['content'] .= "

" . $entry->textContent . "

"; } } // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Joy of Tech elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Jesus & Mo elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function hook_render_article_cdm($article) { return $rel; } /* dirty absolute URL is.

New Pull Request