[trean] check_links.php not working

Martin Lohmeier martin at mein-horde.de
Wed Nov 23 02:29:02 PST 2005


Hi,

for a few weeks my check_links.php is not working correct, all links
have the status 'error'.

I added some debug code to the file and noticed that $head in line 64
have no content:


        // Generate HTTP/1.0 HEAD request.


        $head = 'HEAD ' .
            empty($url_info['path']) ? '/' : $url_info['path'] .
            empty($url_info['query']) ? '' : '?' . $url_info['query'] .
            " HTTP/1.0\r\nHost: " . $url_info['host'] . "\r\n\r\n";
  Horde::logMessage($head , __FILE__, __LINE__, PEAR_LOG_NOTICE);


The log file shows:

Nov 23 09:43:29 djinn01 test.mein-horde.de[27977]: [trean]  [on line 69
of "/var/svr/test.mein-horde.de/htdocs/horde/trean/scripts/check_links.php"]

When I use the code from 1.11, it is working fine:

$head = 'HEAD ';
$head .= empty($url_info['path']) ? '/' : $url_info['path'];
$head .= empty($url_info['query']) ? '' : '?' . $url_info['query'];

$head .= " HTTP/1.0\r\nHost: " . $url_info['host'] . "\r\n\r\n";


I tryed php 5.0.5 (Debian unstable) and 4.3.10 (Debian stable). horde is
up-to-date HEAD.

Is this a problem with my setup or a bug?

bye, Martin

-- 

Powered by Debian GNU / Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/trean/attachments/20051123/9245f35f/signature.bin


More information about the trean mailing list