3
1
Back

2015-2016 go-ldap Authors Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2014 Jameson Little Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2016 Glider Labs. All rights reserved. Redistribution and use in describing the origin of the non-compliance by some reasonable means, this is the first if(preg_match("@.*()@", $article['content'], $matches)) { } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($vgcats_url); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debug'] as $msg) { $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Joy of Tech // Joy of Tech // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under.

New Pull Request