From d356adc84daa5c8648a9f04bca60557789067026 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 14 Feb 2007 17:39:25 +0000 Subject: longer is shorter :) --- url.class | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/url.class b/url.class index f414449..e7aeb57 100644 --- a/url.class +++ b/url.class @@ -366,10 +366,11 @@ function get_cache($p = array()) else touch($path); - if (($parts = parse_url($p['url'])) === false) - it::error('malformed url ' . $p['url']); if ($p['safety'] == 1 && !$result) + { + $parts = @parse_url($p['url']); it::error($p['it_error'] + array('title'=>"get_cache: download failures on {$p['url']}", 'id'=>$parts['host'])); # send err only if multi failure + } @unlink("$path.lock"); } -- cgit v1.2.3