summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorDavid Flatz2018-08-03 17:35:26 +0200
committerDavid Flatz2018-08-03 17:35:26 +0200
commit1228242e5272a26df3cabf3f79372f991c6dcb0f (patch)
treeebf31fca3217d2fa2385de3a991a1ba6ea5db827 /it_url.class
parent852fbc84e78487394ba0ee5b1590ed29aaa730ef (diff)
downloaditools-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.class2
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);