diff options
| author | Markus Birth <github.com@birth-online.de> | 2013-06-02 13:10:38 -0700 |
|---|---|---|
| committer | Markus Birth <github.com@birth-online.de> | 2013-06-02 13:10:38 -0700 |
| commit | ff7ae3c171aa6562891e9defad88be60a22e20d4 (patch) | |
| tree | 59dcab04b77bd3fd93e3d6a600549ad3d30c966e | |
| parent | 8bbaa1c34474371d963a579b544268dc61884af3 (diff) | |
| parent | aefbf4fa8a1eb425cd107752a9ff08d7acc4289d (diff) | |
| download | yafpp-ff7ae3c171aa6562891e9defad88be60a22e20d4.tar.gz yafpp-ff7ae3c171aa6562891e9defad88be60a22e20d4.zip | |
Merge pull request #7 from julmud/master
Added support for article links with whitespace around it
| -rw-r--r-- | init.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -71,13 +71,14 @@ class Af_Feedmod extends Plugin implements IHandler switch ($config['type']) { case 'xpath': $doc = new DOMDocument(); + $link = trim($article['link']); if (version_compare(VERSION, '1.7.9', '>=')) { - $html = fetch_file_contents($article['link']); + $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; } else { // fallback to file_get_contents() - $html = file_get_contents($article['link']); + $html = file_get_contents($link); // try to fetch charset from HTTP headers $headers = $http_response_header; |
