diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-08-03 18:39:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-08-03 18:39:17 +0000 |
commit | cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e (patch) | |
tree | 38c844b9102b5c60e70e6c4974435784d2882122 /modules/aggregator | |
parent | 2e8763bac0208a85e7d0f93ff4561684b1813b3c (diff) | |
download | brdo-cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e.tar.gz brdo-cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e.tar.bz2 |
- import.module:
+ applied Julian's fputs() patch
+ fixed typo
- cloud.module:
+ applied Julian's fputs() patch
- comment.module:
+ applied Julian's "delete" patch
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index e77a4aef9..807ed9098 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -144,7 +144,7 @@ function import_refresh($feed) { if ($fp) { // fetch data: - fputs($fp, "GET $url[path]?$url[query] HTTP/1.0\nUser-Agent: ". variable_get("site_name", "drupal") ."\nHost: $url[host]\nAccept: */*\n\n"); + fputs($fp, "GET $url[path]?$url[query] HTTP/1.0\r\nUser-Agent: ". variable_get("site_name", "drupal") ."\r\nHost: $url[host]\r\nAccept: */*\r\n\r\n"); while (!feof($fp)) $data .= fgets($fp, 128); @@ -202,12 +202,12 @@ function import_refresh($feed) { ** Strip invalid tags and provide default values (if required): */ - $title = strip_tags(strtr($title[1] ? $title[1] : $feed[title], $tt));$title = strip_tags(strtr($title[1] ? $title[1] : substr(strip_tags(strtr($description[1], $tt)), 0, 30), $tt)); + $title = strip_tags(strtr($title[1] ? $title[1] : substr(strip_tags(strtr($description[1], $tt)), 0, 30), $tt)); $link = $link[1] ? $link[1] : $feed[link]; $description = strtr($description[1], $tt); - // print "<pre>title = ". htmlentities($title) ."\n\ndescription = ". htmlentities($description) ."\n\nlink = ". htmlentities($link) ."</pre><hr />"; - + print "<pre>title = ". htmlentities($title) ."\n\ndescription = ". htmlentities($description) ."\n\nlink = ". htmlentities($link) ."</pre><hr />"; + /* ** Save this item: */ |