summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2007-02-14 17:39:25 +0000
committerUrban Müller2007-02-14 17:39:25 +0000
commitd356adc84daa5c8648a9f04bca60557789067026 (patch)
tree24f7db2278522fddfec95d04f0e035d8a805510e
parent644d2ce2a0908d7af4229bfed49a09af8b38d976 (diff)
downloaditools-d356adc84daa5c8648a9f04bca60557789067026.tar.gz
itools-d356adc84daa5c8648a9f04bca60557789067026.tar.bz2
itools-d356adc84daa5c8648a9f04bca60557789067026.zip
longer is shorter :)
-rw-r--r--url.class5
1 files 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");
}