diff options
author | David Flatz | 2018-08-03 17:35:26 +0200 |
---|---|---|
committer | David Flatz | 2018-08-03 17:35:26 +0200 |
commit | 1228242e5272a26df3cabf3f79372f991c6dcb0f (patch) | |
tree | ebf31fca3217d2fa2385de3a991a1ba6ea5db827 /it_url.class | |
parent | 852fbc84e78487394ba0ee5b1590ed29aaa730ef (diff) | |
download | itools-1228242e5272a26df3cabf3f79372f991c6dcb0f.tar.gz itools-1228242e5272a26df3cabf3f79372f991c6dcb0f.tar.bz2 itools-1228242e5272a26df3cabf3f79372f991c6dcb0f.zip |
check for false identity, content of $got could evaluate to false for some requests
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index ea93930..15f2f2f 100644 --- a/it_url.class +++ b/it_url.class @@ -244,7 +244,7 @@ function request($p=array()) EDC('curlinfo', curl_getinfo($curl)); - if ($got) { + if ($got !== false) { $headersize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); $url->header = array_slice(explode("\r\n\r\n", trim(substr($got, 0, $headersize))), -1)[0] . "\r\n\r\n"; $url->data = substr($got, $headersize); |