From cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Aug 2001 18:39:17 +0000 Subject: - import.module: + applied Julian's fputs() patch + fixed typo - cloud.module: + applied Julian's fputs() patch - comment.module: + applied Julian's "delete" patch --- modules/aggregator.module | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index e77a4aef9..807ed9098 100644 --- a/modules/aggregator.module +++ b/modules/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 "
title = ". htmlentities($title) ."\n\ndescription = ". htmlentities($description) ."\n\nlink = ". htmlentities($link) ."

"; - + print "
title = ". htmlentities($title) ."\n\ndescription = ". htmlentities($description) ."\n\nlink = ". htmlentities($link) ."

"; + /* ** Save this item: */ -- cgit v1.2.3